The Oklahoma Court of Criminal Appeals has set execution dates for three death row inmates who had challenged a drug that will be used in their lethal injections.

The court on Wednesday set execution dates of Sept. 16 for 52-year-old Richard Eugene Glossip, Oct. 7 for 50-year-old Benjamin Robert Cole, and Oct. 28 for 54-year-old John Marion Grant.

The three inmates had argued that the sedative midazolam that the state plans to use to execute them presents an unconstitutional risk of pain and suffering because it doesn't properly render a person unconscious.

The U.S. Supreme Court ruled last month in a 5-4 decision that the drug can be used.