The rescued workers were taken across the border to Thailand and put on chartered flights to China.