A US citizen has been sentenced to jail for spying and sharing sensitive information about his employers with China's domestic intelligence agency.