A federal judge has cleared the way for thousands of businesses to receive refunds for tariffs that the Supreme Court struck down last month.