Canada's border security agency admitted making an "error" while sharing passcodes of phones belonging to Huawei chief financial officer Meng Wanzhou with Canadian federal police, according to document filed as part of a hearing in a British Columbia court.