Apple’s departing CEO helped bring billions out of poverty through globalization.