The figures underscore the stickiness of inflation, which created a major political problem for former President Joe Biden.