Out of the 4 trillion dollars the US Federal government spent in 2016 (the last year we had a full budget), 0.631 trillion of that was for the military. An almost infinitesimal part of the New York state budget is for the state national guard.
In 2016, the US Military Spending was roughly HALF of the Discretionary Spending of the budget, which you are correct, in that it totaled ~1.15 Trillion