US consumer confidence rebounded sharply in May from a near five-year low as the outlook for the economy and labor market improved amid a truce on tariffs.