The Senate has passed a short-term measure to keep federal agencies funded into early December and avoid a government shutdown during campaign season