Lawmakers are racing against the clock to pass a package of spending bills before midnight Friday — when funding for several key agencies expires.