It is simply in our best interest to starve cancer whenever we find it and excise it if possible.
If the goal of buying Russian hydrocarbons was to increase the economic stability of Russia and to foster capitalistic market systems in the country to prevent the rise of authoritarianism then the second they invaded Georgia should have resulted in the cutting of those economic ties.
If the goal of opening trade up to China was to prevent a Chinese-Soviet alliance and to weaken the USSR then the second the USSR fell we should have pivoted to defeating Chinese authoritarianism instead of strengthening economic ties to them which has ultimately provided fuel for an authoritarian economic machine that has grown to surpass the capacity of the US and made the US dependent on it.
We didn't do those things and now we're facing existential economic and military threats.