NEW DELHI, Sept. 6 (Xinhua) -- India's Supreme Court legalized gay sex in a historic judgment Thursday apparently scrapping the 158-year-old colonial-era law that criminalized homosexuality.