Either from increased borrowing, or increased taxes, which both take an equal amount of resources and spending out of the private economy as they finance increased government spending, or from printing more dollars, which just creates inflation (devaluing private spending by an equal amount).