Boris Johnson has said he will give MPs more time to debate his Brexit deal if they agree to an election.