Donald Trump has announced a global tariff after the US Supreme Court ruled that his previously imposed duties are illegal.