A bizarre formula, some strange inclusions and exclusions, and some allies who sought to avoid the tariffs left in the lurch.