Texas is poised to enact a wide-ranging elections bill with new voting restrictions that opponents say will make it harder to cast ballots and administer elections in the state.

The Texas legislature on Tuesday passed the final version of the measure Tuesday, and Gov. Greg Abbott (R) is expected to quickly enact it into law after a partisan showdown that has lasted three months. Once the bill becomes law, Texas will join at least 17 other states that have tightened their voting rules since the 2020 general election.

The elections measure is a priority for Abbott and his Republican allies in the state legislature, who worked to pass it during three separate legislative sessions, starting in the spring. The bill has undergone many changes, some as recently as Monday as the two chambers negotiated the final version.

Here’s a quick guide to the bill, the debate over its provisions and how it led to a standoff between Republicans and Democrats in the state.