The tech giant became the third publicly traded company to surpass $4 trillion in market value.