How does this work? Moreover, isn't it dangerous that "As of 2012, 80% of the Tor Project's $2M annual budget comes from the United States government, with the Swedish government and other organizations providing the rest", as stated in the wikipedia page? Going by the record, NSA actions are expected, but the contradictory motives of the institution are not.
To put it succinctly, either their funding is going to bear fruits, or the NSA attacks. Certainly not both.