A federal judge has ruled Wyoming's gay marriage ban unconstitutional.

U.S. District Court Judge Scott Skavdahl delivered the order Friday, but granted a stay on issuing gay marriage licenses until Oct. 23. If government officials tell the court that they will not appeal the ruling, the hold will be lifted.

The ruling came hours after a federal judge issued a similar ruling in Arizona, though that judge refused to grant a stay.