The history of capital punishment in this country has had many horrifying turnings, few more macabre than a warning from states employing lethal injection that a federal court ruling has left them facing a shortage of the imported drug they rely on to kill death-row felons.

The scarcity arose after the one domestic manufacturer stopped making sodium thiopental in 2010. In March, Judge Richard Leon of Federal District Court in Washington blocked the importation of the drug, ruling the Food and Drug Administration had not approved it for “safety and effectiveness,” as required for imports. The F.D.A.’s position was that reviewing such a drug designed for death “clearly falls outside of F.D.A.’s explicit public health role.”

Thirty-three states use lethal injection, and 15 of them have asked the Department of Justice to appeal Judge Leon’s ruling. The judge’s decision is a wise and welcome one that the Justice Department should accept. Capital punishment should be outlawed in all its forms, as it is in most advanced societies.

The lethal-injection quandary is playing out in a second lawsuit brought by The Associated Press and other news organizations to challenge five states that are violating a 2002 federal court mandate that the law requires every step of execution to be witnessed in behalf of the public. When the death chamber curtains have been drawn lately in Idaho, Washington, Montana, Arizona and Nevada, the main insertion of the lethal injection has already occurred. Some subjects have been seen to barely move, with suspicions arising about some inhumane trauma taking place out of sight.