SALT LAKE CITY (AP) — The state Senate has approved a proposal to allow Utah government employees to refuse to marry same-sex couples if they opt out of their right to marry anyone.

The Senate cast a 24-5 vote along party lines to pass the bill Monday night. Democrats opposed the bill, which now moves to the House.

Layton Republican Sen. Stuart Adams sponsors the bill, which would also require counties to have a designated person on hand to marry any couple, even if the county clerk opts out.

It also says religious organizations would not have to recognize marriages that go against their beliefs.

The American Civil Liberties Union of Utah is opposed to the measure because it allows government officials to refuse to serve someone for religious reasons.