A Federal Judge in New York ruled that companies that paid tariffs imposed by the Trump administration are entitled to refunds.