The Medium piece conflates social justice and legal justice. Slavery was legal, so forcibly returning slaves to their owners was legally just. However, we came to recognize it as a moral wrong, something socially unjust. Eventually, we changed the laws, but the cultural change had to happen first.