The agreement from would pass three annual spending bills and extend the rest of government funding until late January.