The court’s decision contrasted with its actions last month, when it allowed the execution of a Muslim prisoner in Alabama who was denied his request to have an imam with him at the time of his death.

The court’s conservatives were criticized by liberals and religious conservatives for that decision. They said that the request came too late.

Texas officials had made the same argument about Patrick Murphy, who was part of a gang of escaped inmates who killed a suburban Dallas police officer during a Christmas Eve robbery more than 18 years ago.

But the Supreme Court’s order Thursday night said Texas could not execute Murphy “unless the state permits Murphy’s Buddhist spiritual advisor or another Buddhist reverend of the state’s choosing to accompany Murphy in the execution chamber during the execution.”