In an unexpected turn, the Supreme Court has declared gay sex illegal, reversing the 2009 Delhi High Court verdict which had decriminalized it.