Britain’s economy has been significantly shaped by membership in the EU, its main trading partner, NYT reports.