On June 20, after millions of Americans had suffered through a sweltering heat wave for three days, Amtrak sent an ominous warning over social media: Trains connecting the largest cities in Northeast could face up to an hour of delay from high temperatures.