Countries are not friendly or hostile to each other. They have different geopolitical goals that sometimes converge and sometimes diverge.
Remember that those countries have highly pragmatic external relations policies and are probably a bit tired of being bossed around by the west.
Notwithstanding the possible merit of the decision, weaponizing the US dollar monetary system against Russia would inevitably have some unintended side effects. One of them is that countries like China, India, Iran, and Saudi Arabia would become interested in strengthening their commercial, monetary, and diplomatic ties.
I can assure you that across the other side of the fence from the western world, every leader started wondering what it would take for their countries to have their foreign reserves seized and have their banks cut off from the western banking system.
We can be certain that Saudi leaders absolutely despise the Americans and that this feeling is reciprocal. Yet, Saudi Arabia has been a strategic partner of the USA for decades because their particular interests aligned in many things.
If their common interests align, you can be sure that China and India will find common ground for agreement.