Labour is on course to win the general election with a majority of about 100 seats in the House of Commons.