It's one of those things that's just so dumb you assume it's only congressional election year virtue signaling designed to get some headlines and then be quietly negotiated away during 'reconciliation', yet congressional processes are so dysfunctional there's always a risk it accidentally becomes law.
It's very clear that China is an enemy that has to be dealt with by US
China isn't militarily supporting Russia or Ukraine. Ukraine's drone army is built from cheap Chinese drones. China is neutral. The argument that it hasn't sanctioned Russia means it is a party to the war on Russia's side is an argument of the form "if you aren't with us, you are against us." But then, you'd think the US would levy the same kind of vitriol at e.g. India.
China is led by a General Secretary of the Communist Party's central committee. Taiwan and China are recognized by the United States by international treaty as one country.
China is "attacking" the US? The US and China are in economic warfare (an economic war started by the United States under the Trump Administration). The reason for this is the US sees China's economic rise as a threat to its global position.
China supporting Russia in massive military expansion, US says. Beijing helping with drone production, space-based capabilities and ballistic missile production https://www.theguardian.com/world/2024/apr/12/china-supporti...
China is lead by a dictator
Biden calls Xi a dictator https://www.reuters.com/world/biden-calls-xi-dictator-after-...
Germany's foreign minister called Xi Jinping a “dictator” https://www.cnn.com/2023/09/19/china/china-germany-xi-dictat...