The powers not delegated to the United States by the Constitution, nor prohibited by it to the States, are reserved to the States respectively, or to the people.
The Tenth Amendment was intended to confirm the understanding of the people at the time the Constitution was adopted, that powers not granted to the United States were reserved to the States or to the people.
Can states legally - and successfully - shut off water to a federal agency? Absolutely, it’s already been done.