U.S. prosecutors have filed criminal charges against Huawei, alleging it committed bank fraud and violated sanctions against Iran.