Washington (CNN) Texas Gov. Greg Abbott has signed a controversial measure that supporters say provides religious protections but Democrats and critics argue would allow discrimination against the state's LGBTQ community.

Abbott, a Republican, signed Senate Bill 1978 , nicknamed the "Save Chick-fil-A" bill, on Monday, according to the Texas legislature's website , after the legislation cleared the state House and Senate last month. The chain has come under fire for its charitable donations to religious organizations, including the Salvation Army, that oppose same-sex marriage.

The measure prohibits the government from taking "adverse action" against any individuals or businesses based on membership, support or donations to religious groups. Before being sent to the governor, the bill was amended to remove language that would have allowed the Texas attorney general to bring action against any government entity or employee that refused to comply with the bill.

Abbott's office did not immediately respond to CNN's request for comment on Wednesday.

The legislation comes after the San Antonio City Council in March approved a new concessions contract for the San Antonio International Airport on the condition that fast food chain Chick-fil-A be excluded. Texas Attorney General Ken Paxton announced an investigation that month into whether the city violated Chick-fil-A's religious liberty with its decision.

Read More