A little-noticed provision of the US Constitution would strip any state of almost all its electoral votes if legislators sought to overrule the will of the voters.