MPs have voted by a majority of one to force the prime minister to ask for an extension to the Brexit process, in a bid to avoid any no-deal scenario.

Labour's Yvette Cooper led the move, which the Commons passed in one day.