The measure also allows police to ask people about their immigration status during a lawful detention, even for minor infractions like jaywalking.
Any anti-sanctuary city measure may face a tough road after a federal judge in April blocked Trump’s executive order seeking to withhold funds from local authorities that do not use their resources to advance federal immigration laws.
Democrats have warned the measure could lead to unconstitutional racial profiling and civil rights groups have promised to fight the Texas measure in court.
“This legislation is bad for Texas and will make our communities more dangerous for all,” the police chiefs of cities including Houston and Dallas wrote in an opinion piece in the Dallas Morning News in late April.
They said immigration was a federal obligation and the law would stretch already meager resources by turning local police into immigration agents.
The police chiefs said the measure would widen a gap between police and immigrant communities, creating a class of silent victims and eliminating the potential for assistance from immigrants in solving or preventing crimes.