The Senate struck a deal to fund a large portion of the government on Thursday evening, just a day before a shutdown deadline.The agreement will split the bill funding the Department of Homeland Security (DHS) off from a “minibus” package of five other major funding bills. The Senate will instead move a stopgap bill known as a continuing resolution (CR) that would fund DHS at current levels until Feb. 13.The two sides had haggled over the length of the CR, with Democrats insisting on the two-week version that won out.