The terms of China’s admission to the WTO were negotiated by both Democrats and Republicans. There was an elite consensus that bringing China into the system would make it more democratic and less dangerous. The consensus position, as it turned out, was completely wrong. As a result, you can reasonably argue that some of America’s economic problems were the result of elite failure.
But there are three major caveats to that position. First, American consumers have enjoyed relatively cheap products for two decades, a benefit that is often dismissed today, but should not be. Second, the elite consensus broke down when it came time to compensate the losers of globalization; that was a partisan issue. Finally, the numbers don’t lie; technological change accounted for far more of the loss of American industrial jobs than trade with China. You can even see this occurring in the Chinese economy today.