Britain and the European Union were on the cusp of striking a narrow trade deal on Thursday, swerving away from a chaotic finale to a Brexit split that has shaken the 70-year project to forge European unity from the ruins of World War Two.