Outnumbered, black Union soldiers stopped 1864 attack