A Cologne court has taken the correct action in stopping the German intelligence service from describing the AfD party as extremist.