The military is funded from the Working Capital Fund. The rest of the government is funded via different funds. It was divided specifically for this reason, so that the military is always funded.
https://en.wikipedia.org/wiki/United_States_Navy_Working_Capital_Fund
So why would Trump tweet that? Why would Q mention it? He would know of the different funds and how one does not affect the other?