The government is also banning telecoms firms from buying new Huawei 5G kit after 31 December.