Slavery and Jim Crow were both legal.
John Brown's raid on Harpers Ferry was not.
In 1894 it was ruled that the Sherman Antitrust Act could be used to stop _unions_ from "interfering in commerce"
The promulgation of functional slavery until the 1980s in Louisiana was similarly legal
The deportation of miners from Idaho Springs in 1903 was of dubious legality but the people who orchestrated it got away with virtually no consequences
Legal and moral are very different
https://inkconceivable.me/@tee/113494952816854154