Nasdaq, S&P 500 post worst daily loss since 2022