SYDNEY, Australia — Australia’s most populous state decriminalized abortion on Thursday, becoming the last jurisdiction in the country to revise blanket penalties enacted decades ago.

The measure in New South Wales, a state of more than seven million people that includes Sydney, overturned a 119-year-old law that made it a criminal offense to procure or administer an abortion.

Under the new legislation, women can seek termination of a pregnancy in the first 22 weeks. After that, they can receive an abortion if two doctors sign off.

Abortion is widely available in most of the West, with one of the last holdouts, Ireland, approving it last year, though several American states have passed restrictive laws in recent years, many of them challenged in the courts.