US court approves new method of executing prisoners