The U.S. budget deficit was $95 billion at the end of July, down 3 percent from the same period last year.