Spain 's top anti-terrorism judge has indicted eight Islamic militants for allegedly helping a suspected mastermind of the September 11 attacks on the United States .