One way to view the government's role here is that it shifts around externalities to achieve efficiency. You can put cap-and-trade restrictions to absorb negative externalize in high-pollution industries and redistribute that to consumer/producer markets that suffer from the pollution.
You can probably apply a similar piece of reasoning across time. Government can tax industries during booms and then redistribute that during busts.