WASHINGTON - A federal judge ruled Wednesday that an FBI watch list of more than 1 million "known or suspected terrorists" violates the constitutional rights of U.S. citizens in the database.

The decision from U.S. District Judge Anthony Trenga of the Eastern District of Virginia in favor of 23 Muslim Americans who sued over their inclusion the Terrorist Screening Database found that the watch list infringes on their constitutional right to due process. Trenga noted that the list restricts their ability to fly and engage in everyday activities and backed the plaintiffs' concerns that they were flagged secretly and without a clear methodology.

"There is no evidence, or contention, that any of these plaintiffs satisfy the definition of a 'known terrorist,' " wrote Trenga, adding that even harmless conduct could result in someone being labeled as a "suspected terrorist" on the watch list.

"An individual's placement into the [watch list] does not require any evidence that the person engaged in criminal activity, committed a crime, or will commit a crime in the future," the judge wrote, "and individuals who have been acquitted of a terrorism-related crime may still be listed."

The ruling could reshape the government's process for a watch list that has long been criticized for inaccuracy and described by opponents as "a Muslim registry created in the wake of the widespread Islamophobia of the early 2000s." Trenga ordered both the plaintiffs and defendants to submit arguments about how to fix the constitutional problems with the database, which encompasses nearly 1.2 million people, including about 4,600 U.S. citizens or residents, as of June 2017.

Trenga's 32-page opinion was hailed as a significant win by the Council on American-Islamic Relations, the civil-liberties organization that filed the lawsuit in 2016.

"Innocent people should be beyond the reach of the watchlist system," Gadeir Abbas, a CAIR attorney for the plaintiffs, said in a statement. "We think that's what the Constitution requires."

The watch list is a different, less restrictive database than the no-fly list, which bars people from boarding U.S. airplanes or flying through the nation's airspace. In 2014, a federal judge in Oregon ruled the no-fly list was unconstitutional, forcing the Department of Homeland Security to reform its procedures. Abbas told the Associated Press that Wednesday's ruling was the first to specifically target the watch list.

The FBI did not immediately respond to a request for comment. The AP reported that the FBI's lawyers argued in court that the government's efforts to combat terrorism outweighed the difficulties alleged by the nearly two dozen Muslim American citizens on the list.

But the people on the watch list told the court they suffered a wide range of abuse and harassment, according to the opinion.

Anas Elhady was returning to the U.S. after a brief trip to Canada in April 2015 when he was surrounded by Border Patrol before he was handcuffed and interrogated for more than 10 hours. During this time, he needed emergency medical attention. Elhady would be detained at least two other times at the border, and on one occasion an FBI agent told him his cellphone conversations were being monitored, according to the opinion.

Hassan Shibly, a plaintiff who works in CAIR's Florida chapter, said he's been searched dozens of times due to his inclusion in the database. Once he was handcuffed by authorities in front of his grandmother near a border crossing in Detroit.

"It's humiliating," Shibly told the AP in April. "The government lawyers could never make the arguments they made … if they had personally faced the same treatment we've faced."