China has ordered North Korean companies in the country to shut down by January as it applies UN sanctions imposed following Pyongyang's sixth nuclear test, the commerce ministry says.