Hungarians have defeated a national autocrat and challenged a broader illiberal international alliance