Court orders dismissal of Flynn prosecution