U.S. inflation slowed last month for the first time since September and a measure of underlying inflation fell to a four-year low, even as widespread tariffs threaten to send prices higher.