A U.S. citizen who said he was wrongly arrested when the government rounded up Muslim men after the 9/11 terrorist attacks has settled his lawsuit against the FBI.

The American Civil Liberties Union, which represented Abdullah al-Kidd in the lawsuit, announced the settlement Friday. Under the terms of the settlement, the federal government offered its regrets to the former University of Idaho student and agreed to pay him $385,000 to compensate him for damages incurred when he spent 16 days in detention facilities in 2003.

In his lawsuit, al-Kidd contended he was one of about 70 Muslim men rounded up under a law designed to ensure witnesses show up for trial after the 9/11 attacks.

But al-Kidd said he fully cooperated with authorities when they investigated another student at the University of Idaho for visa fraud, and that FBI agents never told al-Kidd that he may be needed in court.