So many of the technologies we enjoy today are in widespread use because of espionage (industrial or government or both). It's how you even the tables from time to time.
There's nothing immoral about espionage - only what you use the information for (to build systems of repression, or to build systems that improve ourselves).
You spy on everyone. That's just how it works (by necessity).
If some country is hoarding the secret to a revolutionary food that would help your starving citizens, you're not going to say "Oh, I'll just let my people starve because spying would be WRONG."
If someone has a game changing weapon that they're threatening the region with, you're not going to say "I'll just let them have this power because spying is WRONG."
If you could spy to get new chip technology that will elevate your country out of 80% poverty, you're not going to say "Oh, we'll just remain poor because spying is WRONG."
There are things called "moral dilemmas". The situations when you have no options but to go against moral, the only choice you have is which particular moral rule you will break. Your proposed situations are examples of moral dilemmas.
> There's no "world police". It's the law of the schoolyard when it comes to international relations. You make and break alliances, set up partnerships, break them, gather information to help your allies, and life goes on.
If something is lawful it doesn't mean it is moral, and vice versa. Generally laws are written in a way to enforce moral, but laws are limited in what they can do, so they tend to be less restrictive then moral, and politicians writing laws are not exactly saints, so I wouldn't trust blindly to their moral reasoning.
But even if there are no to punish you for a misdeed, it doesn't make the misdeed to be moral.
e.g. "my need to know supersedes your right to privacy"
They aren't going to say that, but spying is wrong. Murder is also wrong and governments still do it.
Please send me your personal journal, all your browser history too while we're at it, I won't do anything with the information, don't worry.
Theft ? Kidnapping ? /s
Note: OP edited his comment
Hold up--by that logic, if a country has a military it should also be okay for its citizens to privately kill one another.
Or: "The government is allowed to print bills and mint coins that look just like the real thing, so why can't I?"
Regarding money, citizens however are free to mine non-governmental forms of money such as gold and bitcoin.