The Times also said that the N.S.A. has successfully implanted the software into such targets as Russian military networks, systems used by Mexican police and drug cartels, trade groups inside the European Union, and anti-terrorism partners such as Saudi Arabia, India and Pakistan.