The courts have already ruled that the administratiion can pull the federal grants for state and local LE that refuse to cooperate.
https://thehill.com/regulation/court-battles/452862-9th-circuit-rules-in-favor-of-trump-admin-in-sanctuary-city-case
There’s no way the SCOTUS overturns the 9th on this one so it’s over.