A federal judge has thrown out a $1-million fine and foreign worker ban against a New Brunswick seafood processing company.