NEW YORK (NEWSnet/AP) — Michael Cohen returned to the witness stand Wednesday in his ex-boss Donald Trump's civil business fraud trial as the former president's defense team tried to undermine the credibility and question his motives.

Outside the courtroom, Trump's commentary led the judge to weigh whether Trump had violated a limited gag order imposed earlier in the case.

With Trump at the defense table, his lawyer Alina Habba confronted Cohen with comments he had made praising Trump, before turning on him when Cohen's legal problems started in 2018.

Habba tried to suggest that Cohen had angled unsuccessfully for a job in Trump’s White House — Cohen insisted he never sought one — and asked whether he had “significant animosity" toward Trump.

“Do I have animosity toward him? Yes I do,” Cohen replied.

“You have made a career out of publicly attacking President Trump, haven’t you?” Habba asked.

After a long pause, Cohen said, “Yes.”

Cohen worked as Trump’s lawyer and fixer for many years, before Cohen’s 2018 federal prosecution, guilty pleas and prison sentence for tax evasion, making false statements on a bank loan application, lying to Congress and making illegal contributions to Trump’s campaign. The contributions were in the form of payouts to women who said they had extramarital sexual encounters with Trump, who said the women’s stories were false.

Cohen is now a key witness in New York Attorney General Letitia James’ civil case against Trump. James alleges that Trump habitually exaggerated the value of his real estate holdings on financial documents that helped him get loans and insurance and make deals.

Trump denies any wrongdoing and says James, a Democrat, is targeting the leading Republican presidential candidate in 2024 for partisan reasons.

During a break in the testimony Wednesday, Trump complained that Judge Arthur Engoron, a Democrat, is “a very partisan judge, with a person who’s very partisan sitting along side of him, perhaps even much more partisan than he is.”

That remark came weeks after a Trump social media post about Engoron's law clerk, who sits beside the judge, prompted Engoron to issue the narrow gag order and tell Trump to take down the post. That order bars all participants in the case from commenting about any members of the judge's staff.

The judge fined Trump $5,000 on Friday after learning that the post had lingered on Trump's campaign website for weeks, though it had been removed from his Truth Social platform.

After learning of Trump's latest comment, Engoron asked "why should there not be severe sanctions for this blatant, dangerous disobeyal of a clear court order.”

In response, defense lawyer Christopher Kise insisted that Trump was talking about Cohen, not the judge's law clerk. Engoron said he would take the matter "under advisement,” and testimony resumed.

When the trial broke for lunch, the judge held a closed-door meeting that included Trump and his lawyers. When Trump emerged, he declined to disclose what was discussed, but told reporters that he had not violated the gag order, saying his earlier comment was not directed at Engoron's clerk. Trump ignored questions about whom he was targeting.

Copyright 2023 NEWSnet and The Associated Press. All rights reserved.