what region of the united states passed black codes