Viktor Orbán had banned mentions of homosexuality in media accessible to children and outlawed Pride marches.