Hungary’s anti-LGBTQ law breaches EU rules as court ruling hailed as ‘historic’