The court sided with Flynn who had been seeking to withdraw a guilty plea in which he admitted lying to the FBI.