This is why China is investing so heavily in EVs and green energy. They don’t want to have to go to war over oil in the future, and they would rather be immune to oil price fluctuations. Same with imported coal and natural gas. It is just as much about national security as it is about environment.
The USA could do the same, but it produces a lot of oil and gas so there is more resistance against it. But they make those a part of the world market, so whenever Russia or the Middle East go nuts, the price of oil rises and affects consumers at home as well as allies, and we feel compelled to be implied militarily.
I'm 100% OK with this. If we need to become weaker in order to shrink the size of our military, then we should do exactly that.