The US also pivoted to de facto allying with China by the 1970s.
In the eyes of contemporary NatSec leadership like Kissinger (Nixon, Ford) and Brzezinski (LBJ, Carter), leveraging the Sino-Soviet split to box in the Soviets was the ideal option.
As such, from 1972-1992 the US posted soldiers in Xinjiang monitoring the USSR [0], sponsored govenrnent led tech transfers and scientific collaboration [1], provided support for Chinese military modernization [2][3], and expanded economic cooperation [4].
This also played a role as to why US intel in the 2000s assumed Xi Jinping would be pro-American [5], as he started his career working on the US supported modernization of the PLA as a junior secretary to Geng Biao [6] - who was the primary reason the Maoist regime was overthrown in the 1970s.
By the 1970s, the primary NatSec goal was blocking the USSR, and as a result realism became the primary foreign policy strategy used by the US. As such, you ended up seeing policies like ditching India and Taiwan in favor of Pakistan and China, supporting communist Somalia over not-really-communist Dergist Ethiopia during the Ogaden War, and swaying then Soviet-aligned Egypt in favor of the US by cultivating Anwar Sadat and culminating in the Camp David Accords.
[0] - https://www.nytimes.com/1981/06/18/world/us-and-peking-join-...
[1] - https://en.wikipedia.org/wiki/U.S.%E2%80%93China_Agreement_o...
[2] - https://www.nytimes.com/1981/06/17/world/us-decides-to-sell-...
[3] - https://www.nytimes.com/1979/10/04/archives/study-urges-us-a...
[4] - https://www.nytimes.com/1983/05/26/business/us-china-investm...
[5] - https://wikileaks.org/plusd/cables/09BEIJING3128_a.html
[6] - https://en.wikipedia.org/wiki/Geng_Biao