The two were accused of passing information to an agent who forwarded it to a high-ranking Chinese official.