Government shutdown narrowly avoided after late night Senate vote