Under Cook’s leadership, Apple became the first publicly traded company worth $1 trillion and the world’s most admired brand.