Problems with the supply of lethal-injection drugs have spurred Wyoming lawmakers to consider a backup method of executing death-row inmates: the firing squad.

Legislation that passed the state Senate this month on a 17-12 vote would authorize a firing squad in Wyoming if lethal injection can’t be performed in a timely manner, or if it is deemed unconstitutional.

“If...