The decision by a former National Security Agency contractor to divulge classified data about the U.S. government’s surveillance of computers in mainland China and Hong Kong has complicated his legal position, but may also make China’s security apparatus more interested in helping him stay here, law and security experts said on Friday.