The year-on-year change in the U.S. Consumer Price Index accelerated throughout 2021 as the economy gained steam after vaccines reduced the danger posed by COVID-19.