The S&P 500 index declined by 0.5% amid technology stock selloffs