I hate feeding trolls, but I’m just going to say that the federal suit is not siding with illegals or Mexico… it’s actually to protect the rights of the millions of US Citizens of Latino origin.
It was a badly written, unconstitutional law. There are ways to do the same thing legally, such as with random, rolling interstate stops where you stop everyone for papers. But that probably wouldn’t be popular, since it burdens everyone, not just a minority.