A ruling on the exact meaning of a complex contract surprises markets