The law was passed in the backdrop of the US and EU countries slapping sanctions against a number of Chinese entities and officials over allegations of human rights violations against Muslim Uyghurs in Xinjiang and the imposition of China's national security law in Hong Kong.