Wall Street gained ground on Wednesday, with chipmakers and financials helping to push the S&P 500 and the Nasdaq to…