The plan , if accepted by rank-and-file Democrats , would clear the way for a vote Thursday on a long-stalled war funding bill that would pay for military and diplomatic operations in Iraq and Afghanistan into next spring .