Extreme heat coinciding with increased energy prices created a dangerous situation across 10 states in July.