laws limiting the rights of formerly enslaved people