Over 170 million people were left sweltering by a nationwide heat wave, sparking fears of power outages, transit delays, and health hazards.