Electricity is getting more expensive. Here’s how states can prevent people from losing power during a freeze or a heat wave.