More than 300 South Koreans who were arrested in the raid are due to return home on Friday.