Moderating energy prices helped bring down price growth, for what could be the first slowing of consumer-price increases in eight months.