Prosecutors in the Eastern District of New York have reached an agreement to allow a Chinese professor accused of helping to steal intellectual property for the Chinese telecom giant Huawei to return to his home country, they revealed in court Thursday.