India's government on Friday filed a petition in the Supreme Court asking it to review a ruling which upheld the constitutionality of a colonial-era law criminalising gay sex.