One way is that they pay for it with taxes. Another way is that all the thousands to millions of dollars they have.... they can use that to also pay for all the spending that it does.
Hope this helps. If needs to be more specific let me know!
Good Luck!