Judge says immigration agents violated worker’s rights in ‘negligent’ search of NY factory