The Labor Department report showed that consumer prices rose just 0.2% from June to July after dropping slightly the previous month for the first time in four years.