Leaving aside whether a carbon tax would be an effective solution to CO2 (I genuinely don't know), there's no reason to suspect it would be an effective solution to our water crisis, particularly given the huge growth in solar recently.
Datacenters don't need cooling because they're burning gas for their power. They need cooling because computation produces heat. Even if they were feeding as much clean solar power back into the grid as they were using, we would still need to find a solution to their voracious thirst.