A federal judge on Monday dismissed criminal charges against both former FBI Director James Comey and New York Attorney General Letitia James, ruling that the Trump-appointed prosecutor who brought them was unlawfully serving in the role.

The decisions from Judge Cameron McGowan Currie deal a significant setback to the Justice Department, which brought charges against Comey and James within weeks of President Trump publicly calling on Attorney General Pam Bondi to prosecute several of his prominent critics.