Extreme weather has been pushing the country’s power grid to its limits—and wreaking havoc on homeowners and businesses.