Southern states enacted "black codes" that allowed African Americans certain rights, such as legalized marriage, ownership of property, and limited access to the courts, but denied them the rights to testify against whites, to serve on juries or in state militias