Averting chaos, sides agree on deal that ensures they can continue to trade in goods without tariffs or quotas, even after Britain leaves single market, customs union