In a sign of the high cost of U.S. military forces in Iraq and Afghanistan , the Pentagon said it plans to shift $ 9.7 billion of its overall budget to pay for war operations but warned it will run out of money if the U.S. Congress does not approve more funding by mid-July .