The tech giant reaches the milestone just two years after achieving a $1tn stock market valuation.