Now, why would the Supreme Court do that if the federal government, as you suggest, has the sole authority to set immigration policy? Seems like something you've been repeating ad nauseam in these threads may not be correct. If it's helpful, you may think of Texas as a "sanctuary state" that has chosen not to cooperate with Border Patrol.
It was explained quite comprehensively for anybody who really wanted to understand.
It's one thing to just sit on your hands and watch and another to actively prevent somebody from doing his job.