The Alabama Senate on Thursday approved a bill that would eliminate marriage licenses and the need to solemnize marriages.

The bill, sponsored by Sen. Greg Albritton, R-Range, passed 26 to 0. It moves onto the House. Albritton, who first filed the bill in 2015, said it “takes the state out of granting permission, saying who can marry or who can’t.”

During a brief floor debate, Albritton said the measure aimed to resolve an issue with probate judges in the state who stopped issuing marriage licenses after the U.S. Supreme Court struck down state bans on same-sex marriage in Obergefell v. Hodges in 2015. The senator said at least seven and possibly as many 10 of the 68 probate judges in Alabama had stopped issuing marriage licenses.

“A license is a granting of permission or authority for people to take actions,” he said. “That’s the same thing with marriage licenses.”

Instead of issuing marriage licenses, two people getting married would submit affidavits or forms to a probate judge, who would then record the marriage. The marriage would be considered to take place the day the individuals signed the affidavit. It would also eliminate the requirement for a ceremony for nuptials.