A Florida judge sanctioned former President Donald Trump and one of his attorneys, ordering them to pay nearly $1 million for filing what he said was a bogus lawsuit against Trump’s 2016 rival Hillary Clinton and others.

In a blistering filing on Thursday, U.S. District Judge Donald M. Middlebrooks accused Trump of a “pattern of abuse of the courts” for filing frivolous lawsuits for political purposes, which he said “undermines the rule of law” and “amounts to obstruction of justice.”