Eight Senate Democrats joined Republicans in a step to fund the government through January, though other hurdles remain.