Stock markets open with major rally after days of significant tariff-induced losses