WASHINGTON (CBS News/CBSLA) — A federal judge has dismissed porn actress Stormy Daniels’ defamation lawsuit against President Trump. U.S. District Judge S. James Otero issued the order Monday in Los Angeles.

Daniels, whose real name is Stephanie Clifford, alleges she had an affair with Mr. Trump in 2006 and sued him in April after he said a composite sketch of a man she said threatened her in 2011 to keep quiet about an alleged affair with the real estate mogul was a “con job.”

READ MORE: Person Critically Injured In Shooting By School Security Officer

In dismissing the suit, the judge said Mr. Trump’s tweet was a “hyperbolic statement” against a political adversary.

Mr. Trump’s lawyer, Charles Harder, said it was a “total victory” for the president.

“No amount of spin or commentary by Stormy Daniels or her lawyer … can truthfully character today’s ruling in any way other than total victory for President Trump and total defeat for Stormy Daniels,” Harder said.

Harder said Mr. Trump is “entitled to an award of his attorneys’ fees against Daniels.”

READ MORE: Some Calif. Residents Face Losing Fire Protection Insurance After Moratorium Protecting Them Expired

Daniels’ attorney, Michael Avenatti, vowed to appeal and said he’s confident the ruling will be reversed. Daniels’ lawsuit over a $130,000 hush-money deal is pending.

In his ruling, Otero ruled that Mr. Trump’s tweet was protected by freedom of speech.

“The Court agrees with Mr. Trump’s argument because the tweet in question constitutes ‘rhetorical hyperbole’ normally associated with politics and public discourse in the United States. The First Amendment protects this type of rhetorical statement,” Otero wrote.

The embattled adult film actress has some big fans in Southern California, so much so that they gave her the key to the City of West Hollywood earlier this year. On May 23 — “Stormy Daniels Day” — Daniels was recognized at ChiChi LaRue’s.

MORE NEWS: LA County Reports 5 New COVID-19 Deaths; Hospitalizations Hold Steady

© 2018 CBS Interactive Inc. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.