A solid job market and big wage increases have helped to buoy consumer spending in recent months, despite high inflation.