A report from the Treasury showed that The United States ran a budget deficit in July, although government revenues increased from a year earlier due to tax hikes and a strengthening economy.