The chief financial officer of Huawei Technologies made a deal Friday in Brooklyn federal court to avoid jail time for bank fraud in return for cooperation with the U.S. Justice Department.