Parliament agrees to vote on Afghan mission