Supreme Court rules for GOP lawmakers in voter ID case