Wall Street appeared to be cheering the change of leadership under way in the White House, producing one of its best returns in nearly four decades on the day of a new president’s inauguration.