US inflation heated back up in June, rising to its highest level in four months, as higher prices — including those from tariffs — packed a bigger punch.