An anti-sanctuary city law is about to take effect in Texas, but not without a final burst of controversy and court battles.