In case B, the NSA might not hand a briefcase of schematics to US companies for economic gain. But they have used stolen data to influence trade negotiations for the benefit of US companies. In both cases, the military could be said to have acted as an arm of corporate espionage, no?