The Supreme Court ruling has left foreign officials and exporters scrambling to figure out whether to rewire supply chains and reopen trade deals.