It took the Supreme Court to allow Texas to enforce immigration law