A closely watched government economic gauge showed Wednesday that consumer prices in the United States were virtually unchanged from June to July — a measurement that showed that hot-running inflation has begun to cool.