Government shutdown averted at last minute