US Navy officer charged with passing secrets to foreign nations