The ruling comes amid rising public concern over demolitions allegedly targeting specific groups and communities without following due process