European Union negotiators agreed to a 2 percent rise in the bloc's budget for next year to 129 billion euros ($174 billion), following more than 15 hours of talks that ended in the early hours of Saturday morning.

The deal was seen as a victory for cash-strapped capitals grappling with Europe's debt crisis, which had opposed demands by EU lawmakers to increase the budget by more than 5 percent.

More than two-thirds of the EU budget is spent on subsidies for farmers and regional aid funds, which finance road construction, environmental cleanups, and other projects.

But some EU officials said limiting the budget rise to forecasted inflation for next year could leave the bloc unable to pay its bills and threaten the EU budget's AAA credit rating.

This is clearly an austerity budget, as most member states are in the midst of a serious financial crisis, said EU Budget Commissioner Janusz Lewandowski, who had originally proposed a 5 percent rise in spending next year.

There is now a serious risk that the European Commission will run out of funds in the course of next year, and will therefore not be able to honor all its financial obligations toward beneficiaries of EU funds, he said.

That is because while agreeing to limit their contributions to the EU budget to 129 billion euros next year, governments gave in to the European Parliament's demands to allow EU spending commitments next year to go up to 147 billion euros.

Today's commitments become tomorrow's payments, so they are playing a very dangerous game indeed, said one EU official.

But Britain, a strong campaigner for restrained EU spending, welcomed Saturday's deal, with financial services minister Mark Hoban saying austerity at the EU level was vital while member state governments were struggling to tighten their belts.

This is an excellent deal for the UK. We have stopped the European Commission and parliament's inflation-busting proposals and have delivered on the government's promise to freeze the EU budget in real terms, he said.

Throughout this process, we have argued that with member states facing tough decisions on spending at home, we could not afford these unrealistic demands.

Parliament won some concessions in the discussions, including an extra 100 million euro in aid for the Palestinian territories in 2012.

Talks on the EU's spending in 2012 are seen as a prelude to a tougher fight on the bloc's next long-term budget for 2014-2020.

(Reporting by Charlie Dunmore, editing by Justyna Pawlak)