A US jury has found Huawei guilty of stealing trade secrets, though the company was cleared of a racketeering charge after an 11-week trial in Brooklyn.