LOS ANGELES - President Donald Trump has scored a legal victory against porn star Stormy Daniels when a federal US judge rejected her defamation suit against him.

Daniels - whose real name is Stephanie Clifford - still has a separate lawsuit against the president linked to $130,000 in hush money she was paid by Trump’s lawyer shortly before the November 2016 presidential election to keep quiet about an alleged affair.

US District Judge S. James Otero in Los Angeles tossed out the defamation suit Daniels filed earlier this year after Trump claimed on Twitter that the adult film actress had invented threats to silence her over her claims the pair slept together more than a decade ago. “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,” Otero wrote in his ruling.

“The First Amendment (of the US Constitution) protects this type of rhetorical statement.”

Trump’s lawyer Charles Harder called the ruling a “total victory for President Trump and total defeat for Stormy Daniels.”

Otero ruled that the billionaire Trump is entitled to have his lawyers’ fees paid as part of the ruling.

The amount will be determined later, Harder said.