States were intended to have a degree of sovereignty. The SC has ruled that states can’t be forced to carry out federal law. There’s an argument that funds can’t be withheld as punishment, but it’s a weak one.
The SC has long ago become outcome based rather than legally based, so it’s really a crapshoot.
It seems what’s at issue is a grant
Grants can simply be denied, law suit ot no lawsuit