The Supreme Court said Monday it will decide whether former Attorney General John Ashcroft and FBI Director Robert Mueller must face a lawsuit that claims prisoners detained after Sept. 11 were abused because of their religion and ethnicity.

The case, to be argued around the end of the year, will help determine when Cabinet officers and other high-ranking officials can be sued when lower-level government workers violate people's civil rights.

The lawsuit was filed by Javaid Iqbal, a Pakistani Muslim who spent nearly six months in solitary confinement in New York in 2002. Iqbal, since deported from the United States, says Ashcroft, Mueller and others implemented a policy of confining detainees in highly restrictive conditions because of their religious beliefs and race.

A federal appeals court said the lawsuit could proceed, but the Bush administration said the high-ranking officials should not have to answer for the allegedly discriminatory acts of subordinates, absent a glimmer of evidence that they intended or condoned the harsh treatment.

The New York-based 2d U.S. Circuit Court of Appeals said that Ashcroft, Mueller and 32 other former and current government employees named in the lawsuit may eventually be dismissed as defendants if evidence shows they were not sufficiently involved in the activities to support a finding of personal liability.

The Supreme Court will decide whether the lawsuit can even get that far. Last term, in a lawsuit over alleged antitrust violations, the court made it harder for plaintiffs to get past an early hurdle in litigation before defendants even are asked to turn over evidence that could be used to prove what is being claimed. The administration said that decision should be applied to the current case.

Iqbal was arrested at his Long Island home on Nov. 2, 2001, and charged with nonviolent federal crimes unrelated to terrorism. Two months later, he was moved to a holding facility in Brooklyn, where he was in solitary confinement for more than 150 days without a hearing, his lawsuit alleges.

He said he was subjected to physical and verbal abuse, including unnecessary strip searches. On the day he entered solitary confinement, he says, he was thrown against a wall, kicked in the stomach, punched in the face and dragged across a floor by federal prison officers.

He was cleared of any involvement in terrorism and was deported in January 2003 after pleading guilty to fraud and being sentenced to a year and four months in prison.

The appeals court said it recognized the gravity of the situation confronting government investigators after the 2001 attacks and agreed that some forms of government action that otherwise would not be proper are permitted in emergencies.

But it said most of the rights cited in the lawsuit "do not vary with surrounding circumstances, such as the right not to be subjected to needlessly harsh conditions of confinement, the right to be free from the use of excessive force and the right not to be subjected to ethnic or religious discrimination."

A 2003 Justice Department report found "significant problems" with the treatment of post-Sept. 11 detainees at the facility in Brooklyn, including physical abuse and mistreatment.

The case is Ashcroft and Mueller v. Iqbal, 07-1015.