Lawmakers are on the cusp of agreeing to a fiscal year 2022 spending agreement with a big increase for national defense.