Inflation eased slightly in July but price increases stayed above the pace recorded before a surge in fuel prices set off by the Iran war. The reading matched economists' expectations.