The backlash to energy-guzzling server warehouses that power artificial intelligence is shaping statewide campaigns from Arizona to New York