They used to target domestic surveillance. Now they’re targeting U.S. espionage against foreign governments. What happened?