A Manhattan-based federal appeals court Friday reversed a series of district court rulings that paved the way for a 2017 jury verdict, which allowed the U.S. government to seize a nonprofit’s majority stake in a 36-story New York skyscraper.

A three-judge panel of the U.S. Court of Appeals for the Second Circuit found a former judge’s “troubling pattern of errors on relatively straightforward issues” had contributed to what prosecutors at the time called the “largest terrorism-related civil forfeiture in U.S. history.”