Italy budget crisis averted after EU agreement