WASHINGTON (AP) — The Supreme Court has upheld the use of a controversial drug that has been implicated in several botched executions.

The justices on Monday voted 5-4 in a case from Oklahoma that the sedative midazolam can be used in executions without violating the Eighth Amendment prohibition on cruel and unusual punishment.

READ MORE: UPDATE: Estrada Fire Containment 35%; Evacuation Orders Downgraded as Crews Mop Up

The drug was used in executions in Arizona, Ohio and Oklahoma in 2014 that took longer than usual and raised concerns that it did not perform its intended task of putting inmates into a coma-like sleep.

The State of California, which has not executed anyone since 2006, will not be affected by the ruling because the drug is not used as part of the state’s existing lethal injection cocktail.

READ MORE: Hollywood Movie, TV Workers Reach Deal With Producers to Avert Strike

However, those who advocate against the death penalty were hoping the drug would be found as cruel and unusual punishment.

Professor of Law at UC Hastings, Rory Little said he was not surprised by the decision, but noted that the opinions totaled 127 pages.

“That’s more pages than they burned on the same-sex marriage case last Friday,” he said.

MORE NEWS: COVID Vaccination Count in San Mateo County Revised Down Due to Data Error

TM and © Copyright 2015 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2015 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten. The Associated Press contributed to this report.