The Texas law would legalize detaining suspected undocumented migrants.