For months, supporters of Donald Trump had claimed Michael Flynn had been entrapped by the FBI. Within minutes of a sentencing hearing they hoped would exonerate the former national security adviser, that right-wing conspiracy theory was in tatters.

“I’m not hiding my disgust, my disdain for this criminal offence,” judge Emmet Sullivan told Flynn, who has pleaded guilty to lying to the FBI about his contact with Russian officials.

The judge’s blistering rebuke dashed the hopes of the president and his backers, who had claimed Flynn had been tricked into telling an inconsequential lie by intelligence agents on a supposed witch hunt.

Hours earlier on Tuesday, White House spokeswoman Sarah Huckabee Sanders insisted the former army general had been “ambushed” during an FBI interview.

Fox News legal pundit Jeanine Pirro said Mr Sullivan had a “track record of calling out prosecutorial misconduct,” suggesting he may clear Flynn of wrongdoing.

Mr Trump claimed Flynn had been caught making “the smallest of misstatements,” which he had not known was illegal.

But Flynn himself debunked that theory, telling the court he took responsibility for his crime. Asked by Mr Sullivan if he knew lying to the FBI was illegal, Flynn replied: “I was aware.”

Given multiple opportunities to withdraw his guilty plea, he declined.

Asked specifically if he was entrapped or if any FBI misconduct led to his lies, Flynn’s lawyer Robert Kelner said: ”No.”

Who could be running against Trump in 2020? Show all 23 1 /23 Who could be running against Trump in 2020? Who could be running against Trump in 2020? Joe Biden The former vice president - poised to be a frontrunner - has announced his run. He recently faced scrutiny for inappropriate touching of women, but was thought to deal with the criticism well AFP/Getty Who could be running against Trump in 2020? Bernie Sanders The 2016 runner-up has announced that he will be running again in 2020 Getty Who could be running against Trump in 2020? Hillary Clinton The 2016 Democratic presidential candidate and former Secretary of State says she is “still considering” whether she will run again. Getty Who could be running against Trump in 2020? Pete Buttigieg The Indiana mayor and war veteran will be running for president. If elected, he would be the first openly LGBT+ president in American history. Getty Who could be running against Trump in 2020? Kamala Harris The former California attorney general will be running for president in 2020. Introduced to the national stage during Jeff Sessions’ testimony, she has endorsed Medicare-for-all and proposed a major tax-credit for the middle class. AP Who could be running against Trump in 2020? Elizabeth Warren The Massachusetts Senator has formally launched her bid for president in 2020. A progressive Democrat, she is a major supporter of regulating Wall Street. AP Who could be running against Trump in 2020? Beto O’Rourke The former Texas congressman told Oprah Winfrey that he “has been thinking about running for presidency”, but stopped short of formally announcing his bid to run in 2020. AFP/Getty Who could be running against Trump in 2020? Wayne Messam Mayor of the city of Miramar in the Miami metropolitan area, Wayne Messam has announced his bid. He intends to run on a progressive platform against the "broken" federal government. He favours gun regulations and was a signatory to a letter from some 400 mayors condemning President Trump's withdrawal from the Paris Climate Accord. Vice News Who could be running against Trump in 2020? Kirsten Gillibrand The New York Senator formally announced her presidential bid in January, saying that “healthcare should be a right, not a privilege.” Getty Who could be running against Trump in 2020? Cory Booker The New Jersey Senator has announced that he will be running for the presidency in 2020. If he secures the nomination he said finding a female vice president would be a priority. Getty Who could be running against Trump in 2020? John Delaney The Maryland congressman was the first to launch his bid for presidency, making the announcement in 2017. AP Who could be running against Trump in 2020? Julian Castro The former San Antonio mayor announced his candidacy in January and said that his running has a “special meaning” for the Latino community in the US. Getty Who could be running against Trump in 2020? Tulsi Gabbard The Hawaii congresswoman announced her candidacy in January, but is likely to face tough questions on her past comments on LGBT+ rights and her stance on Syrian President Bashar al-Assad. Getty Who could be running against Trump in 2020? Andrew Yang The entrepreneur has announced his presidential candidacy, and has pledged that he would introduce a universal basic income of $1,000 a month to every American over the age of 18. AFP/Getty Who could be running against Trump in 2020? Marianne Williamson The author and spiritual advisor has announced her intention to run for president. She had previously run for congress as an independent in 2014 but was unsuccessful. Getty Who could be running against Trump in 2020? John Kerry The former secretary of state has said he is still thinking about whether to run. Getty Who could be running against Trump in 2020? Michael Bloomberg The entrepreneur and former New York mayor– with a net worth of around $50bn – has said he will decide by the end of February whether to seek the presidency. AFP Who could be running against Trump in 2020? Howard Schultz Former Starbucks CEO Howard Schultz has not yet ruled out running for president in 2020, despite criticism that his bid could help re-elect Mr Trump by dividing the Democrat vote. AP Who could be running against Trump in 2020? Eric Holder The former attorney general has said he will decide in “the next month or so” whether to run as a 2020 presidential candidate. AP Who could be running against Trump in 2020? Eric Swalwell The California congressman said he is “ready to do this” and will decide before April whether to run. MSNBC Who could be running against Trump in 2020? Terry McAuliffe The former Virginia governor, who worked to elect Democratic governors during 2018 midterms, said there was a “50 per cent” chance he would run. AP Who could be running against Trump in 2020? Sherrod Brown The Ohio senator is still undecided about whether to run for president in 2020. Who could be running against Trump in 2020? Mitch Landrieu The former New Orleans mayor said he doesn’t think he will run for president, but “never say never”. AP Photo/Jacquelyn Martin

“Maybe now this stupid conspiracy theory can die,” tweeted national security lawyer Bradley Moss following the hearing. “Flynn was more than sufficiently warned about the context. The agents repeatedly tried to give him hints to refresh his memory. He kept lying.”

Matthew Miller, a justice and security analyst for MSNBC, said: “Well colour me shocked – shocked! – that another right wing conspiracy theory about the FBI has proven to be completely unfounded. We must be in double digits by now.”

Mimi Rocah, a former New York prosecutor, said Mr Trump may have been “hoping Flynn would go in [court] and say something about the ‘corrupt FBI’”.

“There was a whole right-wing conspiracy theory that this whole thing – that everything was going to fall apart today,” she told MSNBC. “It shows that the Trump people do not do well in the courts of law, when you’re dealing with facts and evidence and you can’t just put a spin on things.”

While critics of Mr Trump celebrated, the White House refused to retract its debunked claims. Following the court hearing, in which Flynn’s sentencing was delayed, Ms Sanders again claimed Flynn had been “ambushed” by investigators.

Asked if the administration had changed its stance after the former national security adviser maintained his guilty plea, the press secretary said: “Maybe he did do those things, but it doesn’t have anything to do with the president.”

About Mr Trump’s earlier FBI criticism, she added: ”We don’t have any reason to want to walk that back.”

Support free-thinking journalism and attend Independent events

Flynn’s sentencing was postponed until March to allow him to further co-operate with special counsel Robert Mueller’s Russia investigation.