The formal apology comes after a long battle to win compensation for sick Samsung factory staff.