Lower gasoline prices slowed inflation in June, though many household costs remained stubbornly high.

Fuel costs boosted inflation to its highest rate in years the previous month.

Annual inflation hit 3.5% in June, down from May's more than three-year high — but the resumption of the conflict with Iran threaten to push up inflation as energy costs once…