US Senate advances bill to avert government shutdown