(CNN) A federal judge in California has ordered Stormy Daniels pay $293,052.33 in attorney's fees, costs and sanctions to the lawyers representing President Donald Trump in the defamation suit Daniels and her attorney Michael Avenatti brought against Trump earlier this year.

Trump's attorney, Charles Harder, had asked for a total of nearly $780,000 from the adult films actress -- $389,000 in attorney fees and another $389,000 in sanctions in a hearing last week.

In a statement, Harder called the ruling "a total victory for the President."

"The court's order, along with the court's prior order dismissing Stormy Daniels' defamation case against the President, together constitute a total victory for the President, and a total defeat for Stormy Daniels in this case," Harder said.

The defamation suit -- separate from the original lawsuit about the nondisclosure agreement Daniels signed with former Trump attorney Michael Cohen that's now at the center of a federal criminal case against Cohen -- was brought earlier this year after Trump called an allegation by Daniels that an unknown man threatened her in a parking lot to keep quiet about her alleged affair with Trump a "total con job" in a tweet.

Read More