The governor of Alabama has partially reversed a decision to close more than 30 government offices that issue driver licenses and photo IDs, following weeks of criticism by civil rights advocates and Democratic lawmakers who say the action would make it harder for some black residents to get the identification needed to vote.