Crude oil prices had their biggest weekly gain since 2022. The Dow Jones and S&P 500 led stock market declines as the Nasdaq fell modestly.