What we basically have in modern day America is an unhinged judiciary ruling it is illegal to comply with the law. This is Red Queen territory. We live in a Clown World now. A fundamentally unserious parody of a real country.
State governments have clear supremacy over local governments. There is nothing out of bounds about saying "you will comply with all Federal immigration laws" -- actually, the only thing out of bounds about this is that it was ever necessary to actually pass a law stating such.
We really need to do something about the judiciary. It is completely outside its area of authority when single black robed dictators can undermine and overrule the entire country.