The Senate voted to advance a Republican-backed bill to fund the government, setting the measure on a glide-path to final passage ahead of a midnight funding deadline.