Court Upholds Voter ID Law, Permits Library Cards