US President Joe Biden’s son Hunter Biden has agreed to plead guilty to two misdemeanor charges of willfully failing to pay income taxes and to enter into an agreement that could avert a conviction on a gun-related charge, according to a court filing on Tuesday. The news sparked accusations of favorable treatment for the Democratic president’s son from former President Donald Trump and his Republican allies, who for years have attacked both Bidens. Their accusations of wrongdoing by Hunter Biden relating to Ukraine and China prompted the investigation by David Weiss – the US attorney in Delaware appointed by Trump – that led to the charges. The two misdemeanor tax charges were Hunter Biden’s first. The younger Biden has worked as a lobbyist, lawyer, consultant to foreign companies, investment banker and artist, and has publicly detailed his struggles with substance abuse. The announcement by the Justice Department comes as President Biden is in the middle of a re-election campaign that may pit him again against Trump, the front-runner for the Republican nomination in 2024. As president, Trump asked Chinese and Ukrainian authorities to investigate Hunter Biden’s activities in their countries. According to court filings, Hunter Biden received taxable income of more than $1.5 million in 2017 and in 2018 but did not pay income tax those years despite owing in excess of $100,000. He is also charged with unlawfully owning a firearm from roughly Oct. 12 to Oct 23, 2018 when he was using and addicted to a controlled substance, the Justice Department said. For that charge, he entered a pretrial diversion agreement, an alternative to prosecution that is sometimes used to allow defendants to avoid prison time or a criminal conviction. “It is my understanding that the five-year investigation into Hunter is resolved,” his attorney, Christopher Clark, said in a statement. “I know Hunter believes it is important to take responsibility for these mistakes he made during a period of turmoil and addiction in his life. He looks forward to continuing his recovery and moving forward.” Weiss said the investigation is ongoing, a standard statement in such announcements. The White House on Tuesday declined to comment on the charges or the deal. “The President and First Lady love their son and support him as he continues to rebuild his life. We will have no further comment,” spokesperson Ian Sams said in a statement. Hunter Biden is likely to face a sentencing range of 12-18 months for the tax charges, about half of which could be spent inside a prison cell, according to sentencing expert Tess Lopez. But the odds he will get sentenced to prison are low, based on the tax loss amount, his status as a first-time offender and his willingness to accept responsibility for his actions. “He’s not going to prison,” said Michael Weinstein, a former federal prosecutor who now chairs the white-collar practice at the law firm Cole Schotz. “He is facing prison time, but whether or not practically and realistically he goes is very different.” Hunter Biden disclosed in December 2020 that Weiss’s office was investigating his tax affairs. He denied wrongdoing. He described in a 2021 memoir dealing with substance abuse issues in his life, including crack cocaine use and alcoholism. He was discharged from the U.S. Navy Reserve in 2014 after testing positive for cocaine, sources said at the time.