The "fiscal cliff" compromise, even with all its chaos, controversy and unresolved questions, was enough to ignite the stock market on Wednesday, the first trading day of the new year.
The Dow Jones industrial average careened more than 300 points higher, its biggest gain since December 2011. It's now just 5 percent below its record high close reached in October 2007. The Russell 2000, an index that tracks smaller companies, shot up to 873.42, the highest close in its history.
The reverie multiplied across the globe, with stock indexes throughout Europe and Asia leaping higher. A leading British index, the FTSE 100, closed above 6,000 for the first time since July 2011, at 6,027.37.
In the U.S., the rally was extraordinarily broad. For every stock that fell on the New York Stock Exchange, roughly 10 rose. All 30 stocks that make up the Dow rose, as did 94 percent of the stocks in the Standard & Poor's 500 index.
U.S. government bond prices dipped sharply as investors pulled money out of safe-harbor investments. And the VIX, the "fear index" that measures investors' expectations of future market volatility, plunged more than 18 percent to 14.68, the lowest close since October.
The very last week of each year and the first two days of the new year usually average out to a gain for U.S. stocks. But the size of this year's gains made it stand out.
The Dow has risen on the first day of the trading year for each of the past four years, from 2009 to 2012. The average gain was 171 points — sizable, but still much smaller than Wednesday's leap of 308.41.
In the midst of the euphoria, many investors remained cautious. The deal that politicians hammered out merely postpones the country's budget reckoning, they said, rather than averting it.
"Washington negotiations remind me of the Beach Boys song, 'We'll have fun, fun, fun 'til her daddy takes the T-Bird away,'" Jack Ablin, chief investment officer of BMO Private Bank in Chicago, wrote in a note to clients.
"Nothing got solved," added T. Doug Dale, chief investment officer for Security Ballew Wealth Management in Jackson, Miss.
According to these and other market watchers, investors were celebrating Wednesday not because they love the budget deal that was cobbled together, but because they were grateful there was any deal at all.
"Most people think that no deal would have been worse than a bad deal," said Mark Lehmann, president of JMP Securities in San Francisco.
The House passed the budget bill late Tuesday night, a contentious exercise because many Republicans had wanted a deal that did more to cut government spending. The Senate had already approved the bill.
The late-night haggling was a product of lawmakers wanting to avert a sweeping set of government spending cuts and tax increases that kicked in Tuesday, the start of the new year, because there was no budget deal ready. The scenario came to be known as the fiscal cliff, because of the threat it posed to the fragile U.S. economic recovery.
The bill that passed Tuesday night ended the stalemate for now, but it leaves many questions unanswered.
The deal doesn't include any significant deficit-cutting agreement, meaning the country still doesn't have a long-term plan or even an agreement in principle on how to rein in spending. Big cuts to defense and domestic programs, which were slated to kick in with the new year, weren't worked out but instead were just delayed for two months. And the U.S. is still bumping up against its borrowing limit, or "debt ceiling."
"There's definitely another drama coming down the road," said Lehmann. "That's the March cliff."
The political bickering that's almost certain to persist could have another unwelcome effect: influencing ratings agencies to cut the U.S. government's credit score. That happened before, when Standard & Poor's cut its rating on U.S. government debt in August 2011, and the stock market plunged.
Even so, Wednesday's performance gave no hint of the dark clouds on the horizon.
The Dow enjoyed big gains throughout the day, up by more than 200 points within minutes of the opening bell. It swelled even bigger in the final half hour of trading, and closed up 2.4 percent to 13,412.55.
The Standard & Poor's 500 jumped 36.23, or 2.5 percent, to 1,462.42. The Nasdaq rose 92.75, or 3.1 percent, to 3,112.26.
The yield on the 10-year Treasury note rose sharply, to 1.84 percent from 1.75 percent. Prices for oil and key metals were up. The price of copper, which can be a gauge of how investors feel about manufacturing, rose 2.3 percent. The Dow Jones transportation index rose to its highest point since July 2011.
The gains persisted despite small reminders that there are still serious problems punctuating the world economy, like middling growth in the U.S. and the still-unsolved European debt crisis. The government reported that U.S. builders spent less on construction projects in November, the first decline in eight months. And the president of debt-wracked Cyprus said he'd refuse to sell government-owned companies, a provision that the country's bailout deal says it must at least consider.
Among stocks making big moves, Zipcar shot up 48 percent, rising $3.94 to $12.18, after the company said it would sell itself to Avis. Avis rose 5 percent, up 95 cents to $20.77.
Marriott rose 4 percent, up $1.52 to $38.79, after SunTrust analysts upgraded the stock to "buy." Headphone maker Skullcandy dropped 13 percent, losing 99 cents to $6.80, after Jefferies analysts downgraded it to "underperform."