The consumer-price index, a measure of what Americans pay for everything from gasoline to gym memberships, increased 2.1% in December from a year earlier, the largest year-over-year rise since June 2014.