State approves plan to keep the lights on during summer heatwaves