The Apple CEO navigated shifts between eras in technology and politics while growing the iPhone maker into $4 trillion giant.