Voters will decide in November whether government-issued photo identification should be required when voting in Minnesota, after lawmakers approved the ballot measure Wednesday and ended a years-long dispute.

The Minnesota Legislature has agreed to let voters choose in November if they want a voter photo ID requirement in the state constitution, but some political groups have vowed to challenge the amendment in court before it even reaches the ballot.

The Minnesota House passed a proposed constitutional amendment to make voters show a photo ID at the polls. Here is a small sample of some of the things said by representatives during the nine-hour debate.

Gov. Mark Dayton and Secretary of State Mark Ritchie say there’s a less expensive alternative to the proposal for a constitutional amendment requiring a photo ID to vote, and that it also runs less risk of disenfranchising some voters.

The chief House sponsor of a bill to require a photo ID for voting in Minnesota said Monday she expects the Legislature to pass it soon — and that supporters are likely to bring the issue directly to voters if Gov. Mark Dayton vetoes it.

Republican legislators pushed ahead Wednesday with their effort to make voters present photo identification at the polls, hoping to use their new political muscle to achieve a long-held election law goal.