Critics fear a new law in Texas will prove discriminatory - but officials say it it vital to combat "adversaries".