The train company was forced to cancel or delay key routes in and out of Penn Station because of extreme heat.