The Alabama House of Representatives gave final passage today to a bill that would end the issuance of marriage licenses by probate judges and instead have them record documents that would serve as the official records of marriage.

The bill goes to Gov. Kay Ivey, who could sign it into law.

The legislation came in response to the legalization of same-sex marriage by the U.S. Supreme Court in 2015. In Alabama, some probate judges stopped issuing marriage licenses four years ago because they did not want to sign same-sex marriage licenses.

Under the bill that passed today, couples wanting to get married would submit to the probate judge a form that includes an affidavit saying they meet the legal requirements of marriage and the probate judge would record that as the official marriage document.