As investors sold shares of Microsoft on Thursday, the $3.22 trillion company dragged down the software complex and the S&P 500 index.