Stocks on Wall Street closed mixed on Wednesday, a day after President Trump’s top economic adviser, Gary D. Cohn, said he would resign amid an internal White House dispute over the decision to impose stiff tariffs on imported steel and aluminum.

• The Standard & Poor’s 500-stock index recovered much of its opening-bell losses, ending the day slightly lower, by less than a tenth of a percent. The Dow Jones industrial average closed lower by a third of a percent, while the Nasdaq composite ended in positive territory, gaining a third of a percent.

• Earlier in the day, Asian markets closed lower, while European markets ended the session higher. The yield on a 10-year Treasury note was little changed.