The company briefly surpassed Microsoft, valued at roughly $2.92 trillion, before giving up some ground