The ruling comes just before the 25th anniversary of the 2001 attacks that killed nearly 3,000 people in New York, Washington and Pennsylvania.

The ruling says prosecutors failed to prove that the confessions were voluntarily given.

A U.S. judge rules confessions of alleged 9/11 mastermind inadmissible, impacting upcoming trial ahead of the attacks' 25th anniversary.