Wouldn’t African Americans vote “for things that had to do with America?

Did Jim Crow laws make whites feels superior to African Americans or did whites pass Jim crows laws because they felt superior?