The Chick-fil-A Foundation has donated to organizations that are seen by some as anti-LGBTQ or oppose rights such as same-sex marriage. (iStock/iStock)

Texas Gov. Greg Abbott (R) has signed what’s known as the “Save Chick-fil-A” bill — which bars governments from taking “adverse” steps against companies or individuals on the basis of their religious beliefs or actions — into law.

"No business should be discriminated against simply because its owners donate to a church, the Salvation Army, or other religious organization. Texas protects religious liberty,” Abbott tweeted on Thursday night.

[Supreme Court rules in favor of baker who would not make wedding cake for gay couple]

The move stems from the City of San Antonio’s decision to exclude Chick-fil-A from an airport concession contact because of the fast-food chain’s “legacy of anti-LGBT behavior.” But critics saw the move as a violation of the First Amendment.

Founded by Baptist S. Truett Cathy in 1946, the Atlanta-based company that’s closed on Sundays has been under fire since his son, Dan Cathy, told the Baptist Press in 2012 he supported what he called the “biblical definition of the family unit.” That same year, the U.S. Supreme Court agreed to hear a challenge to the Defense of Marriage Act; in 2013, the court struck down a key part of the law that defined marriage as between a man and a woman for the purpose of federal law.

The Chick-fil-A Foundation has donated to organizations that are seen by some as anti-LGBTQ or oppose rights such as same-sex marriage. But the company has said that it did not support these organizations with the intention of “suppressing a group of people.”

[Charity cites Bush help in fight against hiring gays]

Amid boycotts and pushback from LGBTQ groups, Chick-fil-A has grown into the nation’s third-largest restaurant chain, according to Nation’s Restaurant News. Its $10.46 billion in U.S. sales trails only McDonald’s and Starbucks.

[The sky is falling for fast food, but not for Chick-fil-A. Here’s why.]

The Senate bill 1978 was introduced after the San Antonio City Council voted in March to reject a Chick-fil-A restaurant at the municipal airport, according to the meeting minutes.

[Texas Republicans pass a ‘Chick-fil-A’ bill. LGBT advocates are up in arms.]

“The inclusion of Chick-fil-A as a national brand tenant is something that I cannot support,” council member Roberto Treviño said during the March 21 meeting. “The heart of the LGBTQ community is in District 1, and the community has come together to voice its disapproval of this proposal because it includes a company with a legacy of anti-LGBTQ behavior."

[Chick-fil-A was banned from San Antonio’s airport. The Texas attorney general says it’s ‘discriminatory.’]

A week later, Texas Attorney General Ken Paxton told the city’s representatives that he was opening an investigation into the council decision and asked U.S. Transportation Secretary Elaine Chao to do the same, according to a release.

“The Constitution’s protection of religious liberty is somehow even better than Chick-fil-A’s chicken,” Paxton said in his letter to San Antonio’s city council. “Unfortunately, I have serious concerns that both are under assault at the San Antonio airport.”