Texas Gov. Greg Abbott signed a "sanctuary cities" ban into law on Facebook Live Sunday night.
Abbott designated the ban as an emergency item in January and signed the bill four days after both chambers of the state legislature gave their final approval.
The passage is a big win for Abbott and Republicans, who advocate for stricter immigration laws. They have tried to pass a limit on immigration every session since 2011.
It will ban cities, counties and universities from prohibiting their local law enforcement officers from asking about immigration status and enforcing immigration law.
It will create a criminal charge for police chiefs, county sheriffs and constables who violate the ban, and will charge local jurisdictions up to $25,000 for each day they violate the law.
The law will also allow police officers to ask about a person's immigration status during any legal detention, which includes traffic stops.
Those who support the ban say it is necessary to keep criminal immigrants off Texas streets. They argue that if officers do not turn over unauthorized immigrants they could go on to commit more serious crimes.
Critics, however, view the matter differently.
"It seems fitting that Greg Abbott would sign this disgraceful bill on the internet on a Sunday night, far from the press and the public," Bob Libal, executive director of Grassroots Leadership, said.