Tennessee Gov. Bill Lee signed a controversial measure Friday that would let religious adoption agencies deny service to same-sex couples.

The move comes after several groups, including the state chapter of the American Civil Liberties Union, urged Lee not to sign the legislation.

The law allows adoption agencies to refuse to participate in a child placement if doing so would "violate the agency's written religious or moral convictions or policies."

Under the law, which immediately takes effect, the state will be barred from denying an agency's license or grant application for public funds because of a refusal to place a child with a family based on religious objections.

“The governor believes that protection of rights is important, especially religious liberty," Lee spokesman Gillum Ferguson said. "This bill is centered around protecting the religious liberty of Tennesseans and that’s why he signed it.”

Advocacy groups, including the Campaign for Southern Equality and the Human Rights Campaign, said the legislation targeted members of the LGBTQ community.

But proponents of the legislation, which included religious conservatives, said it was a necessary protection for faith-based groups.

Russell Moore, president of the Southern Baptist Convention's Ethics & Religious Liberty Commission, said in a recent column published in The Tennessean the legislation puts children first and argued that it does not promote discrimination.

Opinion:Newly passed adoption agency bill a win for Tennessee’s children

He said the law doesn't prevent other organizations from helping children.

"This law prevents the state from discriminating against faith-based organizations as they serve and meet the needs of children. It does not restrict others at all," he wrote.

The governor's signature comes a little over a week after the state Senate approved the measure with a 20-6 vote, despite objections from several Republicans, including Lt. Gov. Randy McNally, R-Oak Ridge.

Lee made his intentions clear last week when he said he would sign the bill as soon as it reached his desk.

With the measure now signed, opponents are assessing how to proceed, including potentially taking legal action.

Hedy Weinberg, executive director of ACLU-TN, said the organization is considering its options.

The Rev. Jasmine Beach-Ferrara, executive director of the Campaign for Southern Equality, was more direct, saying, "This law is clearly discriminatory. As long as the LGBTQ community continues to be targeted by discriminatory laws, we will turn to the courts for recourse."

Beach-Ferrara said other states, including Michigan, implemented similar laws and had them halted in court.

"We anticipate that litigation around discrimination focused on adoption will continue to unfold, and the Tennessee law signed today will be part of that conversation,” she said.

Want to read more stories like this? A subscription to one of our Tennessee publications gets you unlimited access to all the latest politics news, podcasts like Grand Divisions, plus newsletters, a personalized mobile experience and the ability to tap into stories, photos and videos from throughout the USA TODAY Network's 261 daily sites.

Reach Joel Ebert at jebert@tennessean.com or 615-772-1681 and on Twitter @joelebert29.