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 /zigman2/quotes/210598065/realtime DJIA -2.37% was the best-performing major index, closing up around 170 points, or 0.7%, aided by solid earnings from IBM Corp. /zigman2/quotes/203856914/composite IBM -3.54% and Procter & Gamble Co. /zigman2/quotes/202894679/composite PG -1.76% . The S&P 500 /zigman2/quotes/210599714/realtime SPX -2.59% finished up 0.2% and the Nasdaq Composite Index /zigman2/quotes/210598365/realtime COMP -3.00% was up less than 0.1%. In other company news, shares of Tesla Inc. /zigman2/quotes/203558040/composite TSLA -4.84% 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.