There is no such thing as "mandatory" spending.
ALL spending (except, arguably, for a Navy) is set by the House of Representatives, which is elected, entire, every two years.
Nothing that a House did in a previous Congress (except, again arguably, Naval procurement) can bind a new House to spend a nickel.
What you say is true. I posted the numbers because the article talks about “mandatory” spending.