NEW YORK (AP) — A federal appeals court in New York has ruled that an anti-terrorism law needs to be reviewed further.

The law allows the military to detain people suspected of supporting al-Qaida or the Taliban.

U.S. District Judge Katherine Forrest found last year that the law was unconstitutional. But the appeals court reversed her decision Wednesday and says the case needs more review in the lower court.

Some journalists, scholars and political activists had sued over the law. They say they fear they could end up being held for exercising First Amendment rights.

Government lawyers call their concerns unfounded.