US inflation cooled last month, though trade war threatens to lift prices