Apple joined Nvidia and Microsoft to become the third company to break through the $4 trillion market value milestone.