The Kentucky Senate on Tuesday approved a bill that would allow companies to deny services based on the religious objections of their owners.

Senate Bill 180 cleared the Republican-led Senate with a 22-16 vote, the Louisville Courier-Journal reported.

The bill's sponsor, Senator Albert Robinson, a Republican from London, said that his bill is aimed at protecting the rights of business owners who oppose the Supreme Court's finding that gay couples have a constitutional right to marry.

“All of these business owners want to treat everyone with full human dignity and respect,” Robinson told the committee. “But their consciences and religious beliefs prevent them from using their skills to promote a celebration that runs counter to what the Bible teaches about marriage. Shouldn't their rights to freedom of speech and freedom of religion be respected?”

If approved, the bill would affect LGBT protections in eight Kentucky cities.

Chris Hartman, director of the Fairness Campaign, a group that advocates for LGBT rights, called SB 180 a “clear attack” on those eight cities.