US consumer prices rose at the slowest pace in four months in February, offering some reprieve ahead of tariffs that are expected to drive costs higher.