A US Navy nuclear engineer and his wife are accused of spying for trying to sell nuclear submarine information to a foreign power.