A federal judge in New York ruled on Wednesday that companies that paid tariffs put in place by the Trump administration are entitled to refunds.