Alice Weidel, the party's co-leader, hailed the ruling as "a major victory not only for the AfD but also for democracy and the rule of law"