U.S. stocks shrugged off a midday selloff to finish mostly higher on Wednesday, as investors weighed a round of solid corporate earnings with ongoing uncertainty surrounding the U.S.-China trade talks. The Dow Jones Industrial Average /quotes/zigman/627449/realtime DJIA +0.70% was the best-performing major index, closing up around 170 points, or 0.7%, aided by solid earnings from IBM Corp. /quotes/zigman/230066/composite IBM +1.02% and Procter & Gamble Co. /quotes/zigman/238894/composite PG +0.47% . The S&P 500 /quotes/zigman/3870025/realtime SPX +0.64% finished up 0.2% and the Nasdaq Composite Index /quotes/zigman/12633936/realtime COMP +0.91% was up less than 0.1%. In other company news, shares of Tesla Inc. /quotes/zigman/118681/composite TSLA +1.19% fell more than 4% after RBC downgraded the stock to underperform and cut its price target to $245 from $290. Elsewhere, citing the government shutdown, House Speaker Nancy Pelosi said she would not authorize President Donald Trump to give his State of the Union speech in the chamber.