NEW YORK (CNNMoney) -- U.S. stocks rallied Friday after a majority of European leaders agreed on a new deal to try to resolve the eurozone debt crisis.
The Dow Jones industrial average () added 187 points, or 1.6%. The S&P 500 ( ) jumped 21 points, or 1.7%. The Nasdaq ( ) rose 50 points, or 1.9%.
During a meeting in Brussels, Belgium, early Friday, the 17 members of the eurozone -- which share the embattled single currency -- reached a deal for a new intergovernmental treaty to deepen the integration of national budgets.
Six additional EU nations supported the deal, but Britain rejected it. The three remaining EU countries tentatively support the deal, but have yet to secure parliamentary approval. Leaders are aiming to have the plan ready by March.
European and U.S. stocks rallied on the news, ignoring Moody's downgrade of three top French banks: BNP Paribas, Credit Agricole SA and Société Générale.
The U.S. financial sector outperformed the broader market in early trading with Bank of America (Fortune 500), Goldman Sachs ( , Fortune 500), JPMorgan Chase ( , Fortune 500), Morgan Stanley ( , Fortune 500) and Wells Fargo ( , Fortune 500) up between 1.5% and 4%. The rally in financials helped erase some of the industry's outsize losses from Thursday.,
"The market views Europe's deal as a positive step, so the optimistic juices are flowing," said Peter Tuz, president at Chase Investment Counsel. "The hope is that Europe is moving toward a mechanism that will allow for broader European Central Bank involvement, and other tools to solve the financial crisis."
But, Tuz warned, "the devil will be in the details, and it will take time to implement."
Meanwhile, a Reuters report that China is creating a $300 billion fund to invest in both Europe and the United States could also have lent support to stocks, said Jennifer Lee, an economist with BMO Capital Markets.
U.S. stocks came off losses on Thursday. The stock sell-off accelerated in the last 20 minutes of trading, with all three indexes falling to their lows of the day, after a flurry of headlines put the likelihood of a Europe debt crisis solution into question.
The declines were sparked in part by ECB President Mario Draghi's refusal to commit to offering broad assistance to troubled eurozone countries. Draghi also emphasized "substantial downside risks" for the European economy.
Treasury Secretary Tim Geithner was in Europe this week to meet with top government officials, highlighting the growing concern in Washington about the eurozone debt crisis.
Following the ups and downs, stocks end little changed for the week. The Dow rose 1.4%, while the S&P 500 added 0.9% higher and the Nasdaq edged up 0.8%.
World markets: European stocks ended with solid gains. Britain's FTSE 100 ( ) ticked up 0.8%, the DAX ( ) in Germany rose 1.9% and France's CAC 40 ( ) added 2.3%.
Asian markets ended lower, after mixed reports on China's economy showed that inflation cooled in November while industrial production slowed sharply. The Shanghai Composite ( ) fell 0.6%, the Hang Seng ( ) in Hong Kong slumped 2.7% and Japan's Nikkei ( ) lost 1.5%.
Economy: The government released its latest trade data for October, showing the U.S. trade deficit dipped slightly to $43.5 billion. The number was in line with estimates, but deeper in the red from the $43.1 billion deficit in the prior month.
The December installment of the University of Michigan's Consumer Sentiment Index beat expectations, rising to 67.7 from 64.1 in November. Analysts were expecting a rise to 65.1.
Companies: DuPont ( , Fortune 500) shares plunged after the chemical maker lowered its forecasts for the year. DuPont CEO Ellen Kullman cited slower growth and global economic uncertainty as reasons for the lower outlook.
General Electric (Fortune 500) shares rose after the company said it is raising its quarterly dividend by 13%. It was the fourth time GE has increased its dividend since July 2010.,
Oil for January delivery rose $1.07 to settle at $99.41 a barrel.
Gold for February delivery gained $3.40 to settle at $1,716.80 an ounce.
Bonds: The price on the benchmark 10-year U.S. Treasury fell, pushing the yield up to 2.05% from 1.97% late Thursday.
|What we want Apple to unveil at WWDC|
|Millennials squeezed out of buying a home|
|7 traits the rich have in common|
|Big Data knows you're sick, tired and depressed|
|Your car is a giant computer - and it can be hacked|
|Overnight Avg Rate||Latest||Change||Last Week|
|30 yr fixed||3.92%||3.83%|
|15 yr fixed||2.99%||2.98%|
|30 yr refi||4.01%||3.92%|
|15 yr refi||3.08%||3.08%|
Today's featured rates: