NEW YORK, NY - APRIL 16: (L to R) Adult film actress Stormy Daniels (Stephanie Clifford) and Michael Avenatti, attorney for Stormy Daniels, speak to the media as they exit the United States District Court Southern District of New York for a hearing related to Michael Cohen, President Trump
PHOTO: Drew Angerer/Getty Images North America/Getty Images
NEW YORK, NY - APRIL 16: (L to R) Adult film actress Stormy Daniels (Stephanie Clifford) and Michael Avenatti, attorney for Stormy Daniels, speak to the media as they exit the United States District Court Southern District of New York for a hearing related to Michael Cohen, President Trump's longtime personal attorney and confidante, April 16, 2018 in New York City. Cohen and lawyers representing President Trump are asking the court to block Justice Department officials from reading documents and materials related to Cohen's relationship with President Trump that they believe should be protected by attorney-client privilege. Officials with the FBI, armed with a search warrant, raided Cohen's office and two private residences last week. (Photo by Drew Angerer/Getty Images)
Now playing
00:44
Stormy ordered to pay Trump lawyers legal fees
US President Joe Biden speaks about the 50 million doses of the Covid-19 vaccine shot administered in the US during an event commemorating the milestone in the Eisenhower Executive Office Building in Washington, DC, February 25, 2021. (Photo by SAUL LOEB / AFP) (Photo by SAUL LOEB/AFP via Getty Images)
PHOTO: Saul Loeb/AFP/etty Images
US President Joe Biden speaks about the 50 million doses of the Covid-19 vaccine shot administered in the US during an event commemorating the milestone in the Eisenhower Executive Office Building in Washington, DC, February 25, 2021. (Photo by SAUL LOEB / AFP) (Photo by SAUL LOEB/AFP via Getty Images)
Now playing
02:28
Axelrod explains the message Biden is sending with strike
WASHINGTON, DC - FEBRUARY 13: Senate Minority Leader Mitch McConnell (R-KY) walks from his office to the Senate Chamber for the fifth day of former President Donald Trump
PHOTO: Chip Somodevilla/Getty Images
WASHINGTON, DC - FEBRUARY 13: Senate Minority Leader Mitch McConnell (R-KY) walks from his office to the Senate Chamber for the fifth day of former President Donald Trump's impeachment trial at the U.S. Capitol on February 13, 2021 in Washington, DC. House impeachment managers asked the senate Saturday for the ability to question witnesses as part of the trial. (Photo by Chip Somodevilla/Getty Images)
Now playing
02:07
McConnell says he'd support Trump as GOP nominee
The Pentagon, the headquarters of the US Department of Defense, located in Arlington County, across the Potomac River from Washington, DC is seen from the air January 24, 2017.  / AFP PHOTO / Daniel SLIM        (Photo credit should read DANIEL SLIM/AFP via Getty Images)
PHOTO: Daniel Slim/Getty Images
The Pentagon, the headquarters of the US Department of Defense, located in Arlington County, across the Potomac River from Washington, DC is seen from the air January 24, 2017. / AFP PHOTO / Daniel SLIM (Photo credit should read DANIEL SLIM/AFP via Getty Images)
Now playing
05:24
US carries out airstrikes on Iran-backed militia groups
The exterior of the U.S. Capitol building is seen at sunrise on February 8, 2021 in Washington, DC. The Senate is scheduled to begin the second impeachment trial of former U.S. President Donald J. Trump on February 9.
PHOTO: Sarah Silbiger/Getty Images
The exterior of the U.S. Capitol building is seen at sunrise on February 8, 2021 in Washington, DC. The Senate is scheduled to begin the second impeachment trial of former U.S. President Donald J. Trump on February 9.
Now playing
01:57
Senate parliamentarian rules against minimum wage increase in relief bill
Now playing
03:56
Marjorie Taylor Greene's challenger explains decision to run
PHOTO: CNN
Now playing
03:44
Acting US Capitol Police chief explains 'operational challenges' from January 6 riot
Rep. Marie Newman (D-IL) speaks with CNN
PHOTO: CNN
Rep. Marie Newman (D-IL) speaks with CNN's Alisyn Camerota.
Now playing
07:17
Lawmaker reacts to Rep. Taylor Greene's tweet on her transgender daughter
Connolly
PHOTO: CNN
Connolly
Now playing
03:51
'I will not be lectured' on bipartisanship: Lawmaker fires back at Jim Jordan
US President Donald Trump speaks to the press from the South Lawn of the White House after announcing and initial deal with China in Washington, DC, prior to departing to Lake Charles, Louisiana to hold a campaign rally on October 11, 2019.
PHOTO: NICHOLAS KAMM/AFP/Getty Images
US President Donald Trump speaks to the press from the South Lawn of the White House after announcing and initial deal with China in Washington, DC, prior to departing to Lake Charles, Louisiana to hold a campaign rally on October 11, 2019.
Now playing
02:28
Romney says he's 'pretty sure' Trump will win 2024 nomination if he runs
Now playing
02:04
Senate moderates create obstacle for Biden's nominee
This picture taken 26 December 2011 shows the Pentagon building in Washington, DC.  The Pentagon, which is the headquarters of the United States Department of Defense (DOD), is the world
PHOTO: Staff/AFP/Getty Images
This picture taken 26 December 2011 shows the Pentagon building in Washington, DC. The Pentagon, which is the headquarters of the United States Department of Defense (DOD), is the world's largest office building by floor area, with about 6,500,000 sq ft (600,000 m2), of which 3,700,000 sq ft (340,000 m2) are used as offices. Approximately 23,000 military and civilian employees and about 3,000 non-defense support personnel work in the Pentagon. (Photo credit should read STAFF/AFP via Getty Images)
Now playing
04:30
Pentagon report gives insight on White supremacists in active military
Now playing
03:57
GOP senator continues to push riot conspiracy theory
Now playing
02:08
Cabinet secretary explains why he took on challenging role
Rep. Debra Haaland (D-NM), President Joe Biden
PHOTO: Leigh Vogel/Pool/Getty Images
Rep. Debra Haaland (D-NM), President Joe Biden's nominee for Secretary of the Interior, testifies during her confirmation hearing before the Senate Committee on Energy and Natural Resource, at the U.S. Capitol on February 24, 2021 in Washington, DC.
Now playing
00:59
'We need to work together': Haaland responds to question on blind loyalty
Now playing
01:35
Laughter follows awkward moment between GOP leaders
(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.

Daniels, whose real name is Stephanie Clifford, says she and Trump had an affair in 2006, after he married first lady Melania Trump and she gave birth to their son, Barron. Trump has denied having an affair with Daniels.

Avenatti argued that Trump’s tweet, posted April 18, “attacks the veracity of her account” of the incident and Trump’s statement was “false and defamatory, and that the tweet was defamation … because it charged her with committing a serious crime,” Federal District Judge S. James Otero wrote in his opinion dismissing the lawsuit in October.

Otero said that argument didn’t hold water.

“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.

As part of Otero’s decision, he ordered Daniels to pay a portion of Trump’s attorney fees.

Trump celebrated the decision in October by calling Daniels “Horseface” in a tweet.

Avenatti said the ruling Tuesday was a partial win for him and his client.

“Trump asked for $800k in attorneys’ fees, costs and sanctions from the minor defamation case. The ct awarded well less than 1/2, recognizing that the request was gross & excessive,” Avenatti said in a tweet that has since been deleted. “The amount in fees awarded Stormy in the main NDA case will be at least $1 million more than this.”

So far, the judge has not ruled on the merits of the nondisclosure case nor has he awarded any fees to either attorney.

Avenatti later added a statement in a series of tweets.

“Trump and his attorney’s attempt to fool the public about the importance of the attorneys’ fees in the defamation case, which are a fraction of what they owe my client in the main NDA case, is an absolute joke,” Avenatti tweeted. “People are smarter than that.”

“Charles Harder and Trump deserve each other because they are both dishonest,” Avenatti wrote in another tweet. “If Stormy has to pay $300k to Trump in the defamation case (which will never hold up on appeal) and Trump has to pay Stormy $1,500,000 in the NDA case (net $1,200,000 to Stormy), how is this a Trump win?”