NBC: Senate advances deal to fund government ahead of Friday deadline to avert shutdown