McCarthy needed Dem votes to maintain a hold on the speakership, but the concessions he would have needed to make in order to get them would have meant making himself incredibly vulnerable to a career-ending primary challenge. The political incentives don’t line up.
For China specifically and at the present time this is true, but China is investing heavily into solar and other renewables that will shift its energy mix dramatically in the coming years. Not to mention that even now, it’s still a net benefit to centralize that fossil fuel consumption into plants that can burn it more efficiently and with better pollution controls than are feasible on cars.