A federal judge in San Antonio on Wednesday blocked Texas from enforcing its ban on so-called sanctuary cities, questioning the constitutionality of a law that has pitted Republican state leaders against several Democratic-leaning cities.

The judge’s ruling was only temporary, and prevents the law from taking effect on Friday while a suit against it goes forward.