She had sought a judicial review over the alleged failure to issue new guidance on abortion to medical professionals in Northern Ireland
She claimed the delay compounded the trauma of losing her babies.
But on Friday, her lawyers said her goal had been reached as guidelines have now been published.
Northern Ireland's abortion law differs from the rest of the UK and access to termination is more restricted.
Abortion is only permitted in Northern Ireland if a woman's life is at risk or there is a permanent or serious risk to her mental or physical health.
The woman who took the case wished to remain anonymous. In 2013, she had to travel to a clinic in England to terminate twins with fatal foetal abnormalities.
Staff at a Belfast hospital believed they were unable to carry out the abortion due to uncertainty around the law, according to papers in the case.
Last year, she discovered that a second pregnancy was non-viable. On that occasion, however, she was able to have an abortion at another hospital in Belfast.
Consultants decided that continuing with the pregnancy could have serious consequences for her mental health.
In her challenge, she claimed there was a legitimate expectation that the guidelines would be published in final form.
But on Friday, her barrister indicated that the publication of the guidance meant she had secured the relief sought.
Her lawyers are now pursuing the costs of her challenge.
The long-awaited guidelines are aimed at providing clarification for medical staff on when a termination is legal.
The lack of clarity on the issue has been a sticking point for decades, and clinicians have expressed fear that they could face prosecution for carrying out abortions, based on their interpretation of a permanent or serious risk to woman's mental or physical health.
The publication of the latest set of abortion guidelines follows years of talks between the Department of Health, the Department of Justice and senior clinicians.
It also comes after a series of legal challenges against the current law and a high-profile but unsuccessful campaign to legalise abortion in cases of fatal foetal abnormality.

The 28-year-old has spent the past four years with Danish top-flight club AGF Aarhus.
Hearts head coach Robbie Neilson said: "He's got experience, a good grounding and is a great character.
"We watched a lot of him on video, spoke to various people about him and got good reports and he's impressed in the time he's spent with us."
He works hard and wants to do well
Scotland Under-21 international Kevin McHattie is Hearts' first-choice left-back.
Neilson said: "It's great to get both cover and someone to challenge Kevin."
Eckersley, capped by England Under-18s, made a solitary first-team appearance while at Old Trafford, and had loan spells at Royal Antwerp, Brondby, Barnsley and Port Vale.
The latter resulted in a permanent move to the Valiants, but he switched to Horsens in the Danish top flight in 2008 before moving to Aarhus two years later.
He won the Danish First Division, the country's second tier, with both clubs.
"He works hard and wants to do well," said Neilson on Hearts' website.

Ingram was Most Valuable Player in the domestic T20 Blast in 2016 and has hit two centuries in 2017.
He has previously played in the Indian Premier League for Delhi Daredevils.
The 32-year-old left-hander will play limited-overs cricket for Glamorgan in 2018 and 2019 but will give up Championship cricket.
Glamorgan face Leicestershire in Cardiff on Wednesday in the quarter-finals of the T20 Blast.
Adelaide Strikers are coached by former Australia fast bowler Jason Gillespie, who had a season with Glamorgan and has also coached Yorkshire.
"The decision was made that we'd look over the world for an overseas batsman and we found a quality one in Colin," Gillespie said.
"He gives it a whack... he has a lot of T20 experience and adds a great deal to our batting line-up."
The Big Bash competition starts in December and Ingram's participation will not clash with Glamorgan commitments.
A County Antrim woman who had two pregnancies terminated has ended her legal challenge against Northern Ireland's Department of Health.
[NEXT_CONCEPT]
Hearts have signed former Manchester United youth-team full-back Adam Eckersley after a successful trial.
[NEXT_CONCEPT]
Glamorgan batsman Colin Ingram has signed for Adelaide Strikers and will play in Australia's Big Bash competition for the first time.