Major stock indexes surged Wednesday, a day after major equities indexes recorded their worst day in three months, as President Donald Trump appeared to rule out military force in Greenland.