U.S. June deficit surges to $864 billion