The stock market’s slump this year briefly pulled the  S&P 500 into what’s known as a bear market Friday