Extreme heat broke meteorological records, canceled flights, and made life miserable for millions of people.