The likelihood of a government funded through to the end of the year looked more likely, just one less thing for Congress to worry about after being tasked with a lengthy to-do list.
A little more certainty on the debt ceiling shored up gains on Wall Street after a shaky morning. The Dow Jones Industrial Average was up 0.25% on Wednesday, Sept. 6, the S&P 500 gained 0.31%, and the Nasdaq rose 0.28%.
On Wednesday afternoon, Trump agreed to raise the debt limit through to Dec. 15, approving of a three-month extension deal offered by Senate Democratic Leader Chuck Schumer and House Minority Leader Nancy Pelosi. The proposed extension is tied to a Hurricane Harvey relief package.
Schumer and Pelosi said in a statement that the proposal offered a bipartisan approach to the debt ceiling so that Congress could focus on other issues such as "government funding, DREAMers, and health care." House Speaker Paul Ryan had called the proposal "unworkable" and accused Democrats of playing politics.
Hurricanes and North Korea worries, meanwhile, kept a cap on market gains on Wednesday. Hurricane Irma, the latest weather risk, made landfall in the Caribbean earlier Wednesday and has the potential to reach Florida by the weekend. A state of emergency has been declared in Florida and Puerto Rico.
Irma could be only the fourth category 5 hurricane to hit the U.S. mainland since the early 1930s. The last category 5 storm -- Hurricane Andrew in 1992 -- caused about $50 billion in damage in 2017 dollar terms.
The latest weather threat has forced cruiseliners such as Carnival Corp. (CCL - Get Report) and Norwegian Cruise Line Holdings Ltd. (NCLH - Get Report) to cancel or alter a number of their trips. Insurers such as Travelers Cos. (TRV - Get Report) , Allstate Corp. (ALL - Get Report) , and Progressive Corp. (PGR - Get Report) were also on watch.
Meanwhile, geopolitical worries over North Korea have yet to die down with no clear resolution in sight. New developments in the North Korea-U.S. conflict over the weekend sent the Dow tumbling more than 200 points on Tuesday, Sept. 5.
The threat of military action from North Korea spiked over the weekend break after the ready-to-strike authoritarian nation successfully conducted its sixth nuclear test on Sunday, Sept. 3. South Korea's defense ministry said that North Korea is preparing the launch of another intercontinental ballistic missile, one that could be fitted with a nuclear warhead. North Korea launched its first two ICBM tests in July.
The threat of conflict with North Korea dominated market action at the beginning of August after Trump warned of severe retribution should the authoritarian state proceed with any more missile tests or threats. Trump said that further threats would be met with "fire and fury like the world has never seen."
Even with Tuesday's selloff, markets have generally been resistant to the North Korea threat and other geopolitical risks. Since July 28 when North Korea tested its second intercontinental ballistic missile, the S&P 500 has fallen just 0.3%.
"We're all just scared to be out of this market," said Jason Thomas, chief economist at AssetMark, in a call. "Despite all of the things we could talk about on the horizon -- North Korea, the debt ceiling, tax reform -- it's hard to get the courage to be out of this market given how it's reacted in the past and the dry powder that the central banks, first and foremost the Fed, now have as a result of raising rates."
Crude oil prices surged again even as the latest hurricane threatened to throw U.S. production and demand into a spin. A number of refineries in Texas and Louisiana have reopened after Hurricane Harvey, reinvigorating demand for crude.
West Texas Intermediate crude was up 1% to $49.16 a barrel on Wednesday.
Energy stocks were the best performers on markets Wednesday. Exxon Mobil Corp. (XOM - Get Report) , Chevron Corp. (CVX - Get Report) , Halliburton Co. (HAL - Get Report) , Schlumberger Ltd. (SLB - Get Report) , and BP PLC (BP - Get Report) were all higher, while the Energy Select Sector SPDR ETF (XLE - Get Report) added 1.6%.
Federal Reserve Vice Chair Stanley Fischer announced his retirement in a letter to President Trump on Wednesday morning. Fischer will resign from his post by mid-October. He cited personal reasons. His term was set to finish next June.
Economic activity in the U.S. rose at a "modest to moderate pace" across the 12 Federal Reserve districts in July and August, according to the Fed's latest "Beige Book," an anecdotal reading on economic conditions. Consumer spending grew in most districts, while employment growth slowed, though not enough to introduce slack into the labor market. The Fed said it was "too soon to gauge the full extent of the impact" of Hurricane Harvey on the economy.
Newell Brands Inc. (NWL - Get Report) declined by 3% after cutting profit forecasts as it accounts for the effects of Hurricane Harvey on its resin supplier facilities in Texas and Louisiana. Many of its facilities in the region have declared force majeure and a number are still not operational more than a week after the worst of the storm. Newell anticipates profit of $2.95 to $3.05 a share, down from previous guidance of $3 to $3.20.
Hewlett Packard Enterprise Inc. (HPE - Get Report) reported fiscal third-quarter earnings and sales that were stronger than expected. The technology solutions company posted adjusted earnings in the quarter of 30 cents a share on revenue of $8.21 billion. Wall Street was expecting profit of 26 cents a share on revenue of $7.5 billion.
Trivago NV (TRVG - Get Report) shares staggered 16% lower on Wednesday after the hotel search engine slashed its third-quarter and full-year guidance. The company now anticipates full-year sales growth of roughly 40%. Trivago said in a statement that it has "algorithmically pulled back our performance marketing activities more than previously anticipated, which has resulted in a further slowdown in traffic and revenue growth from those channels." Fellow online travel companies Expedia Inc. (EXPE - Get Report) and Priceline Group Inc. (PCLN) were also lower.
The U.S. trade deficit widened in July, though not at the pace anticipated. The deficit as of July came in at $43.7 billion from $43.5 billion in June. Economists expected the deficit to widen to $44.6 billion. Exports fell by 0.3%, while imports declined 0.2%.
Services activity in August rose, though at a weaker pace than expected. The ISM non-manufacturing index increased to 55.3 in August from a previous reading of 53.9. Analysts expected an increase to 55.8. Any reading over 50 indicates expansion -- the measure has been above that level for 92 straight months. Business activity, new orders, and employment all increased.
More of What's Trending on TheStreet: