CARMEL, Ind. (AP) — The Carmel City Council has passed an ordinance banning discrimination based on a person's sexual orientation, narrowly defeating efforts by social conservatives to defeat the measure in the affluent Indianapolis suburb.

The council voted 4-to-3 on Monday in favor of the ordinance during a packed meeting.

Carmel Mayor Jim Brainard had hoped to fast-track the ordinance, which was sponsored by six of the seven council members when it was introduced in August. But socially conservative organizations pushed back against the proposed protections for lesbian, gay, bisexual and transgendered people, The Indianapolis Star reported.

Council member Kevin Rider said he's against discrimination but couldn't support the ordinance without some or all of the changes he and two other council members who also voted against the measure had sought, including more exemptions for Christian-owned businesses.

"If you make me choose between God and government, I'm going to choose God every time," Rider said.

Carmel High School graduate Amanda Joseph, who is gay, urged the council to pass the ordinance. She said that without the protections, she could be evicted from her apartment just for being gay.

"Please vote for me to be protected to live here and to be happy," she said.

Columbus, Zionsville, Terre Haute, Hammond and Muncie recently passed similar ordinances, joining Indianapolis and about a dozen other Indiana communities that already had such LGBT protections in place.

Indiana does not have statewide LGBT civil rights protections, but a growing number of groups are ratcheting up pressure on the Legislature to approve such protections.

The debate over those protections was spurred by a national uproar last spring when Republican Gov. Mike Pence signed a religious objections law passed by the Republican-dominated Legislature.

Critics said that law would allow people to discriminate against LGBT residents. The Legislature later amended the law to bar businesses from using it as a legal defense to refuse to provide services, goods, facilities or accommodations on religious grounds.

Recommended for you