US judge dismisses election case against Trump after prosecutors request