Consumer prices rose as expected in July, according to Federal data published Wednesday, as analysts projected an in-line inflation report would likely persuade the Federal Reserve not to raise interest rates next month.