Senators are working down to the wire to avoid a midnight funding lapse in Washington that would carry major ramifications.