Cook on migrant ship not part of smuggling ring, judge rules