Former prime minister Viktor Orbán had sought to chip away at LGBTQ+ rights in Hungary.