Legal actions that ended slavery