The European Parliament has voted on a resolution that could lead to the EU revoking Hong Kong's special customs treatment.