A US federal judge has dismissed a criminal case against former President Donald Trump, accused of illegally retaining classified documents after leaving office. District Judge Aileen Cannon ruled that special counsel who filed the charges was illegally appointed.