The prime minister responded after the government lost the Brexit vote in the House of Commons by a majority of 230 votes.