× Thanks for reading! Log in to continue. Enjoy more articles by logging in or creating a free account. No credit card required. Log in Sign up {{featured_button_text}}

Legislation to protect religious groups from government-imposed penalties over their views on same-sex marriage passed the House of Delegates on Wednesday on a 59-38 vote.

Senate Bill 41, which also would prevent marriage officiants from being required to participate in a wedding ceremony, passed the Senate last month on a 20-19 vote. The legislation appears to be headed to Gov. Terry McAuliffe’s desk, though the chambers still have to reach agreement on the bill’s final form.

Following the nationwide legalization of gay marriage, the Republican-controlled legislature introduced several bills this session that supporters said would prevent traditional religious beliefs from being drummed out of the public sphere. Critics have called the bills unconstitutional, arguing they codify discrimination against gay Virginians.

McAuliffe, a vocal supporter of gay rights and the LGBT community, has said he will oppose any legislation that makes Virginia less open and welcoming.