Aides have spent weeks strategizing how to reconstitute the president’s global tariff regime if the court rules that he exceeded his authority.