Congress races to lock in spending deal before shutdown deadline