I thought the EU started as a means to regulate industrial production, then later evolved into what you describe.
https://en.wikipedia.org/wiki/European_Coal_and_Steel_Commun...