Some companies struck deals to sell tariff refund shares before the Supreme Court even ruled against the president’s sweeping levies