Senate passes stopgap bill to avert government shutdown, ensuring uninterrupted operations for now while paving the way for a heated funding battle in the coming year