This is too easy.
The various Departments just need to rewrite all local and state grant requirements from each Department to include compliance with all federal laws.
Game, set, match.
Or CHANGE THE LAW and open the borders. If that can’t be done, admit it’s not what the people want.
Charge any official that refuse to comply with immigration laws with harboring illegal aliens.
A few prison sentences will get the others minds right.