A government shutdown is averted by 11th hour deal