We have this thing called “federalism” which prevents that hypothetical law from being constitutional. The federal government cannot tell states how to spend their own money.