The House narrowly passed a spending bill late Thursday that includes $37 billion to fund the war in Afghanistan.
Just before the vote, the White House issued a veto threat, warning members of President Barack Obama's party that he would reject the bill if they placed money conditions that would "undermine his ability as commander in chief to conduct military operations in Afghanistan."
The White House also objected to cuts to one of Obama's key education priorities.
The House measure includes $10 billion in domestic spending - such as money for the Gulf oil disaster and funds to help states avoid teacher layoffs.
War funding passed the Senate without the add-ons in the House version, so the Senate must take up the bill again.
But Senators have left Washington for the July Fourth recess and won't return until the week of July 11.