US stocks rallied the edge of their all-time high after easing oil prices helped calm Wall Street’s worries that inflation could get even worse.