The controversial legal theory threatened to upend state election laws nationwide by giving state legislatures unchecked power over federal election rules.