A five-judge constitution bench of the Supreme Court on Thursday unanimously decriminalised part of the 158-year-old colonial law under Section 377 of the Indian Penal Code (IPC) which criminalises consensual unnatural sex, saying it violated the rights to equality.