The company says it is “deeply sorry” for the pain caused by the tweets about a woman’s 2001 death.