Consumer prices rose 2.9% in December from a year earlier, marking the third consecutive monthly uptick in annual inflation.