Dismissed as “not a product guy,” the outgoing CEO proved that supply-chain mastery could take Apple to new heights.