It cant for existing profitable business models. You couldnt ban the google owned nuclear SLBM fleet if it already existed and represent the most profitable sector of the economy. Inertia exists and the more profitable the topics the harder it is to break from a central position. It would be economic suicide on a national level.
You would get some paper tiger checks and balances entrenching googles nuclear fleet monopoly.
Of course we can ban that. :laughs in EU:
There just isn't the political will behind it like it is on things like ICE cars or nuclear energy, because unlike the latter things, the politicians and voters don't understands it well enough to be outraged about it.
edit: Saw your nuclear energy edit too late. Thats a great example for protectionism / having a frame for subsidies. We still require energy, that section of the GDP didnt just evaporate.
Car legislation is likewise just a driver for higher consumption.
You would need something equally profitable to do for the sub fleet supply chain to ban it.