The High Court in South Africa has ruled that Chinese South Africans are to be reclassified as black people.