A German court ruled on Tuesday that the domestic intelligence agency cannot classify the far-right Alternative for Germany (AfD) as a “case to investigate”.