States can refuse the funds and not worry about this provision. Live free or die!
But even the reddest states won’t do that because free money is free money and who doesn’t love free money. It’s nice and freshly printed. They’ll worry about whether this provision can be enforced at some later date by which time the money will have been spent and no one will care.