Two Chinese nationals have been charged with spying inside the United States on behalf of Beijing, including taking photographs of a naval base, coordinating a cash dead-drop and participating in efforts to recruit members of the military who they thought might be open to working for Chinese intelligence.