WASHINGTON — Saying that high-ranking Bush administration officials may have taken part in grave constitutional violations after the Sept. 11 attacks, a federal appeals court in New York on Wednesday revived a long-running lawsuit brought by immigrants, most of them Muslim, who said they were subjected to beatings, humiliating searches and other abuses in a Brooklyn detention center.

“The suffering endured by those who were imprisoned merely because they were caught up in the hysteria of the days immediately following 9/11 is not without a remedy,” Judges Rosemary S. Pooler and Richard C. Wesley wrote in a joint opinion for a divided three-judge panel of the court, the United States Court of Appeals for the Second Circuit.

“Holding individuals in solitary confinement 23 hours a day with regular strip-searches because their perceived faith or race placed them in the group targeted for recruitment by Al Qaeda violated the detainees’ constitutional rights,” the judges said.

The case, filed as a class action in 2002, was the first broad legal challenge to the policies and practices that swept hundreds of mostly Muslim men into the Metropolitan Detention Center in Brooklyn on immigration violations in the weeks after the Sept. 11 attacks.