The former train conductor vows to refile after a federal judge tossed it.