An interim court order has been obtained to prevent the illegal construction of housing on council-owned property in Soweto.