A judge has dismissed the Georgia election interference case against President Donald Trump and others after the prosecutor who took over the case said he would not pursue the charges.