He lost the budget battle to Schumer.
The way Trump looks at it is that he won the military funding Mattis has been pounding him about, and he can use executive discretion on much of the increased domestic spending. Win/win.