The European Union should take China to the International Court of Justice in The Hague if Beijing imposes a new security law on Hong Kong, the European Parliament voted on Friday, also calling on the bloc to use economic leverage to dissuade China.

EU governments have already expressed "grave concern" over China's security law for Hong Kong, which democracy activists, diplomats and some businesses say will jeopardize its semi-autonomous status and its role as a global financial hub.

In a resolution, the European Parliament voted 565 in favor to 34 against, with 62 abstentions to protest the security law that Europe, Australia and the United States say would undermine the "one country, two systems" principle that governs Hong Kong's autonomy.