"The United States will immediately impose additional punishing economic sanctions on the Iranian regime. These powerful sanctions will remain until Iran changes its behavior" Trump said while noting that Iran appears to be "standing down."
Buying following Trump's speech ran the Nasdaq Composite to record highs while the S&P 500 and Dow Jones Industrial Average finished just off their own peaks. The major averages gave up some of their gains just ahead of the closing bell after there were reports of two explosions in Baghdad.
Every sector in the S&P 500 rallied with the exception of energy and utilities, which fell in tandem with oil prices.
West Texas Intermediate crude oil plunged 4.9 percent to $59.61 per barrel level after hitting an overnight high of $65.65. Meanwhile, Brent crude oil, the international benchmark, fell to $65.63 per barrel after rallying to $71.99 on Tuesday evening. Energy stocks, like ExxonMobil and Chevron, were also under pressure.
Gold reversed course from an almost 7-year high of $1,613.30, which came in the immediate aftermath of Tuesday night's attack. The precious metal closed down $19.90, or 1.3 percent, at $1,554.10 an ounce.
Elsewhere, Defense stocks traded mixed as Raytheon paced the gains and Northrop Grumman trailed.
Boeing shares were under pressure after a 737-800 aircraft crashed shortly after takeoff from Tehran’s Imam Khomeini International Airport, killing all 176 people aboard.
Tesla shares squeezed higher after receiving after Argus Research raised its price target to $556 from $396 late Tuesday. The electric-vehicle maker has gained 17.6 percent so far this year.
On the earnings front, shares of Walgreens Boots Alliance were lower after the drugstore chain reported disappointing fiscal first-quarter results.
Meanwhile, homebuilder Lennar gained after fourth-quarter profit and revenue topped expectations and the company forecast 2020 sales above estimates.
Constellation Brands announced its fiscal third-quarter profit and sales were boosted by strong demand for its beer.
Macy’s rose after announcing it will close 28 stores, it also reported holiday season comparable sales fell 0.7 percent, reflecting a “strong trend improvement from the third quarter."
U.S. economic data out Wednesday morning showed private-sector payrolls increased by 202,000 in December, topping the 160,000 that economists surveyed by Refinitiv were expecting.
Treasurys slumped, causing the yield on the 10-year note to climb by 4.7 basis points to 1.87 percent.
In Europe, Germany’s DAX led the advance, up 0.7 percent, while France’s CAC was higher by 0.3 percent. Britain’s FTSE 100 was little changed.
Overnight, markets were hit hard in Asia. Japan’s Nikkei lost 1.6 percent, China’s Shanghai Composite fell 1.2 percent and Hong Kong’s Hang Seng shed 0.8 percent.