The consumer price index increased by 2.9 percent in December from a year earlier, the Labor Department reported Wednesday, in line with economists’ expectations and hotter than a 2.7 percent rise in November. It was also above a 2.6 percent annual increase in October.