Former Arcadia mayor Eileen Wang has agreed to plead guilty to acting as an illegal agent of China after a US federal probe.