LONDON — Shares in BP made up part of their recent losses Thursday as investors welcomed a deal struck with President Obama to set up a compensation fund for the victims of the oil spill in the Gulf of Mexico.
The shares gained as much as 9.7 percent in early London trading. They had fallen 45 percent since an oil rig exploded in April.
Some investors said the agreement with the United States eliminates some of the uncertainty about the costs for the oil spill cleanup and compensation, even though BP scrapped dividend payments as part of the deal.
“It’s a positive because there were no surprises in the deal, the dividend had been well communicated beforehand and at least in the near-term the agreement gives investors a little bit more certainty and something to work with,” said Keith Bowman, an analyst at the asset manager Hargreaves Lansdown in England.
The cost of insuring BP against default also fell and its bonds rose, a sign that fewer investors are speculating that BP might go bankrupt. The BP chief executive Tony Hayward is due to testify before Congress Thursday, but the agreement with President Obama, struck at the White House Wednesday, was widely seen as a step to calm tensions between BP executives and Washington about the company’s efforts to clean up the spill.
BP agreed to create a $20 billion fund to pay damage claims to thousands of fishermen and others living and working along the Gulf Coast. The company also said that it would sell oil and gas fields and cut investments in drilling if necessary to ensure BP had enough money to pay for any costs.
Some shareholders in Britain had previously opposed plans to halt dividend payments, which are among the most generous of any British company, as a result of U.S. pressure. BP stock is also widely held in pension funds across the country and it would be the first time since World War II that BP was not paying a dividend.
But the political opposition in the United States to paying dividends to shareholders while the total cleanup cost and damage claims remain unknown started to weigh on BP’s share price.
“Hopefully the deal will remove just a little bit of pressure and allow BP to fully concentrate on the oil spill,” Mr. Bowman said.