Britain took a big step closer to leaving the EU as Boris Johnson's Brexit deal was backed by a large majority of MPs.