The Prime Minister suggested that he could reverse his party's ban on future licences after the next election - as his MPs voted on the legislation.