Don't be ridiculous. An idea is original if there's no prior art. If there's no prior art, spying on other people doesn't magically cause prior art to spring into being.
I agree but it's not totally ridiculous, because prior art has to be published or at least known about. So if a technology was worked in a secret laboratory which was stolen, there was no prior art as all the thieves would say was "we've been working on this for years also, and released it before you".
"And pretty soon My name in Dnepropetrovsk is cursed, When he finds out I published first!"
Ever since I meet this man, my life is not the same.
So in your world, the NSA shares all the secrets it finds with random patent thieves?
If its developed as a secret, you will never prove prior art.