Lawmakers passed Democrat-sponsored proposals that would make crucial funding for the Iraq war conditional on pulling out the troops.