Prince Charles, who attended the transition ceremony, said slavery was an “appalling atrocity which forever stains" British history.