Unfortunately governments were reluctant to really get behind regulations that were needed, and the business case for investment in any drive to sustainability did not exist. People lost interest as inflation went up, and other things seemed more important. The market was flagging and Trump's "drill baby drill" was the final nail in the coffin.
The world was _nearly_ there to rapidly accelerate reducing the dependency on fossil fuels on the back of climate change. Instead we went back to fossil fuel cars and built energy-intensive AI data centres. We collectively dropped the ball and one day will look back on it as a missed opportunity.