In trying to engineer their way out of water scarcity, Brazil’s leaders are repeating mistakes made by their American counterparts.