All Southern states had Black Codes as well. They were meant to keep free blacks from moving in to the state, keep free blacks in the state from getting educations or working in select professions, and making it as hard as possible for slaves to be freed. But I suspect you don't have a problem with those. Either the ones before the rebellion or the ones after.
Or am I practicing "presentism" again?
Southern States adopted Black Codes AFTER emancipation. They modeled their laws on the laws already on the books in the North.