A feast of firms including Slaughter and May, Sullivan & Cromwell and Ropes & Gray have advised one of the world’s largest sandwich manufacturers on the $1bn (£817m) sale of its US business.