A federal judge on Tuesday agreed with the request of the U.S. Justice Department to dismiss the prosecution of Michael Flynn, formally ending a three-year legal saga in which the former Trump national security adviser twice admitted to lying to the FBI, only to later seek to withdraw his guilty plea and receive a pardon from President Donald Trump.