South Carolina voters would have to bring photo identification with them to polling places under a measure that has cleared the state Senate.