Smalt flertal har indgået budgetforlig