NEW YORK (CNNMoney) -- U.S. stocks finished higher Tuesday, but the gains were limited as investors weighed an upbeat U.S. economic report against Europe's ongoing debt problems.
The Dow Jones industrial average () rose 26 points, or 0.2%, snapping a four-session losing streak. The S&P 500 ( ) added 7 points, or 0.6%, and the Nasdaq ( ) rose 18 points, or 0.7%.
A better-than-expected reading of the ISM Services index gave markets a lift. The index for May rose to 53.7, surprising economists who had forecast the index would fall to 53.1 from April's 53.5. Any reading above 50 indicates growth in the service sector, which makes up the majority of the U.S. economy.
But ongoing concerns about Europe's debt problems kept the gains in check, as the Spanish banking system teeters on the edge of collapse and Greece comes closer to a possible exit from the euro. CNNMoney's Fear & Greed Index remained in extreme fear territory Tuesday.
Spanish Treasury Minister Cristobal Montoro told a Spanish radio network Tuesday that the country has been nearly shut out of global finance markets, and that its banking system would need help from other European countries. Yields on Spain's 10-year bond jumped as high as 6.5% before pulling back.
Meanwhile, credit rating agency Standard & Poor's said Monday that there is a one-in-three chance Greece will leave the euro currency union in the coming months.
Despite the gloomy news, investors were somewhat encouraged as finance officials of the world's seven largest economies, the G-7, held an emergency call Tuesday to discuss the region's crisis.
"They're talking about what can be done to throw a safety net or build a ring fence around some of the banks in southern Europe, so we don't see a flight of deposits," said Art Hogan, managing director at Lazard Capital Markets. "The fact that they're talking about it means something is in the works, and will come to fruition sooner rather than later."
According to a statement from the U.S. Treasury, the G-7 will continue to "monitor developments closely" ahead of the G-20 summit later this month in Mexico.
U.S. financial stocks were among the biggest gainers on the news. Shares of JPMorgan Chase (Fortune 500), Bank of America ( , Fortune 500) and Morgan Stanley ( , Fortune 500) gained between 3% and 4%.,
U.S. stocks finished little changed on Monday after a choppy trading session.
World markets: European stocks closed mixed. The DAX ( ) in Germany slipped 0.2%, while France's CAC 40 ( ) rose 1.1%. London's stock market was shut in celebration of the Queen's Diamond Jubilee.
Asian markets ended on a higher note. The Shanghai Composite () ended up about 0.2%, while the Hang Seng ( ) in Hong Kong added 0.4% and Japan's Nikkei ( ) rose 1%.
Facebook (shares turned lower Tuesday afternoon and hit a new low of $25.75. Shares are now more than 30% below the IPO price of $38. Reports Monday that Facebook is looking at ways to allow children younger than 13 to use the site is prompting new criticism of the social networking company.)
Netflix (content delivery network to provide its streaming service to customers. Shares of Akamai ( ), a tech company that currently provides some of that service to Netflix, slid.) shares slipped after the company announced late Monday that it would start its own
Shares of Research in Motion (BlackBerry maker closed below $10 a share on Monday -- the lowest level since December 2003.) rebounded slightly Tuesday. The
Oil for July delivery rose 31 cents to settle at $84.29 a barrel.
Gold futures for August delivery rose $3 to $1,616.90 an ounce.
|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.83%||3.86%|
|15 yr fixed||2.95%||2.94%|
|30 yr refi||3.95%||3.98%|
|15 yr refi||3.05%||3.05%|
Today's featured rates: