(CNN)Ireland's Prime Minister has hailed a "historic moment" for women in the country, after a bill to legalize abortion passed through the final stages of parliament.
The bill is now set to be signed into law by President Michael D. Higgins, following a marathon debate in parliament's upper house Thursday, and will come into force in January.
Two-thirds of Irish voters agreed to amend the constitution and allow women to access abortion in a momentous and emotionally charged referendum in May.
Prime Minister Leo Varadkar thanked the bill's supporters on Twitter and commended Health Minister Simon Harris for steering it through parliament. The bill passed through parliament's lower house, the Dáil, last week.
The vote would "end lonely journeys, end the stigma and support women's choices in our own country," Harris said on Twitter Thursday.