The allies’ intelligence agencies discovered a rare opportunity to target high-level officials, including the country’s supreme leader.