Apple Inc.’s has become the first US company to hit a market cap of $2 trillion, doubling in valuation in just over two years.