NEW YORK — The U.S. stock market stabilized on Tuesday as investors followed the latest developments in the Greek debt saga.
Stocks edged higher a day after the market had its worst day of the year. That slump was prompted by a breakdown in talks between Greece and its creditors. Greece's European bailout program ends Tuesday at midnight, and the country hasn't yet managed to agree on an extension or a new deal with creditors.
On Tuesday, the office of the Greek Prime Minister said that the country remains at the negotiating table, and that the government has proposed a two-year deal with Europe's bailout fund. The eurozone's top official, Jeroen Dijsselbloem, said that said there was no point in continuing the current program since the Greek government had rejected all of the creditors' proposals. A request for a new European aid program would be considered later.
The Greek government has also called a referendum for Sunday, asking Greeks to vote on whether the nation should accept the deal offered by its creditors. Investors are concerned that if Greece defaults on its debts the nation will eventually drop out of the euro currency, a move that could potentially set off turmoil in financial markets.
Even though the standoff in Greece is far removed from the U.S., the global nature of financial markets will ensure that any ripple effects will be felt across the Atlantic, said Mike Ryan, chief investment strategist at UBS Wealth Management Americas.
"There are obvious concerns that failure to reach some kind of an agreement could put Greece on a path to a eurozone exit," Ryan said. "If there is going to be volatility in global markets, it will be reflected in U.S. markets as well."
The Standard & Poor's 500 index rose 5.47 points, or 0.3 percent, to 2,063.11 The index closed out the quarter with a loss of 0.2 percent, its first quarterly decline since dropping 1 percent in the last three months of 2012.
The Dow Jones industrial average climbed 23.16 points, or 0.1 percent, to 17,619.51. The Nasdaq composite rose 28.40 points, or 0.6 percent, to 4,986.87.
Despite Monday's slump, many investors remain confident U.S. financial markets will hold their own.
"Whatever happens here, even if it's the worst case scenario and Greece drops out (of the euro), the pullback probably wouldn't be gigantic," said Scott Wren, a senior global equity strategist at the Wells Fargo Investment Institute.
In European trading, the Stoxx 50 index of leading European shares fell 1.3 percent. Germany's DAX dropped 1.2 percent, while the CAC-40 in France fell 1.6 percent.
In the U.S., Willis Group Holdings rose $1.50, or 3.3 percent, to $46.90 after the insurance broker said it will combine with Towers Watson in a deal valued at about $18 billion.
Bond insurers, including MBIA and Ambac, fell sharply for a second day as investors followed the debt crisis in Puerto Rico. Credit-rating firm Standard & Poor's said that a default, or a restructuring, of the island's debt within the next six months appeared inevitable.
Puerto Rico's governor said Monday night he will form a financial team to negotiate with bondholders on delaying debt payments and then restructuring $72 billion in public debt that he says the island can't repay.
"If Greece wasn't happening, this would be a major story right now," said JJ Kinanhan, chief strategist at TD Ameritrade.
MBIA dropped 36 cents, or 5.7 percent, to $6.01. The stock has fallen 36 percent in the last week. Ambac Financial fell $3.08, or 15.6 percent, to $16.64.
Andrew Gadlin, an analyst who follows MBIA for the broker Odeon, estimates that the insurer has $5.8 billion of exposure to Puerto Rico's debt.
Mark Palmer, an analyst at BTIG, wrote in a note Monday that bond insurers were "unbuyable" until there was greater clarity on the losses the firms could face.
Investors were also looking forward to the U.S. government's monthly jobs report, which will be published on Thursday. A strong report is likely to increase investors' expectations that the Federal Reserve will raise its benchmark interest rate for the first time in close to a decade later this year.
U.S. financial markets will be closed Friday in observance of Independence Day.
In currency trading, the euro fell 0.7 percent at $1.1137 while the dollar fell 0.1 percent to 122.50 yen.
Government bond prices fell slightly after big gains on Monday. The yield on the 10-year Treasury note edged up to 2.35 percent from 2.33 percent a day earlier.
The price of oil rose for the first time in a week as negotiations with Iran over its nuclear program were extended, potentially delaying a return of Iranian crude to the market.
Benchmark U.S. crude rose $1.14 to close at $59.47 a barrel in New York. U.S. crude finished the month down 1.4 percent. Brent crude, a benchmark for international oils used by many U.S. refineries, rose $1.58 to close at $63.59 a barrel in London.
Metals futures ended slightly lower. Gold fell $7.20 to $1,171.80 an ounce, silver lost 11 cents to settle at $15.55 an ounce and copper fell two cents to $2.62 a pound.
In other energy futures trading on the NYMEX:
— Wholesale gasoline rose 6 cents to close at $2.090 a gallon.
— Heating oil rose 5 cents to close at $1.887 a gallon.
— Natural gas rose 2.7 cents to close at $2.832 per 1,000 cubic feet.