The new law imposes a maximum penalty of 10 years in jail and criminalises the "promotion" of same-sex relations.