The decision signals a shift in LGBTQ+ policy in the country since Prime Minister Péter Magyar took office.