An Iranian national charged with spying for the United States’ Central Intelligence Agency (CIA) has escaped the death penalty and will instead serve 10 years behind bars.