The Supreme Court has given a significant judgment to curb illegal buildings, a major problem facing almost all cities and towns in the country.