US stocks extended their winning streak on Wednesday, with the Nasdaq and S&P 500 settling at record closing highs for…