 Immediately following the war all of the Southern states enacted "Black Codes," laws intended specifically to curtail the rights of the newly freed slaves.Many Northern states enacted their own "Black Codes" restricting or barring black immigration.The Civil Rights Act of 1866, however, nullified most of these laws and the federal Freedman's Bureau was able to regulate many of the affairs of Southern blacks, who were granted the right to vote in 1867.