The U.S. Justice Department has agreed not to prosecute a former CIA analyst who in 2024 was accused of serving as a secret agent for South Korea’s intelligence service, according to court documents filed Tuesday.