States can punish ‘faithless’ electors, Supreme Court rules