All such agencies will lose if we start creating software more responsibly. I understand that Stallman is a somewhat controversial figure here, but his mantra of "freedom over convenience" might bear repeating.
You are heavily downvoted, but the NSA self-funding would not be entirely without precedent. They certainly have the ability, the only question is if they have balls large enough to actually do it.