A federal judge in San Antonio, Texas, on Wednesday blocked Texas from carrying out a law set to go into effect Friday that would essentially ban sanctuary cities.

U.S. District Court Judge Orlando Garcia ordered a temporary hold on the law on the account that its premise may be unconstitutional. The preliminary injunction will remain as a lawsuit as the policy winds it way through the courts, according to one report.

The law allows law enforcement officers to ask the immigration status when people who have been detained give police reason to believe they may be in the U.S. illegally.

It also requires local officials to cooperate with U.S. Immigration and Customs Enforcement's detainer requests.

ICE issues these types of requests when it learns an illegal immigrant is in custody and will ask for the individual to be held for 48 hours until a federal agent can be sent to transfer him or her into federal custody to await immigration proceedings.

Local jurisdictions are barred from passing legislation or implementing policies that rescind the new state policy.

Democratic leaders from Houston, Austin, San Antonio, and Dallas have all partnered together in a lawsuit against Texas' new policy.