With Republicans poised to control one or both chambers of Congress after next week’s midterm, the prospects for climate legislation look bleak. States will play an even more important role in slashing planet-warming emissions and transition to renewables.