The US Court of International Trade has ruled in favour of small businesses that challenged President Donald Trump's global tariffs.