In a basic way, after Thatcher brought in the Transport Act, Edinburgh and Lothian councils came up with a clever and simple workaround.
The Act privatized the buses, so Edinburgh and the Lothian councils formed a private company together. The councils are the shareholders of the company and they appointed directors to run it at arms length.