The apex court ordered compensation of Rs 5 million each to those whose construction were to be demolished