The House of Commons voted by an overwhelming majority of 438 to 20 in favour of an election in six weeks' time.