The ruling was put into force two weeks before the intended marriage.
The judgment restrained the girl's parents from removing her from Australia and from harassing, threatening or intimidating her, or questioning her about the court proceedings.
The parents were ordered to surrender her passport, and an alert was issued to airports in case they tried to send her overseas before the travel documents were surrendered or cancelled.
The published judgment said the girl had made it very clear that she had told her parents she did not want to fly to Lebanon to marry her arranged husband-to-be.
It said the girl was fearful for her personal safety and was frightened of her mother's reaction to the proceedings, although her father was opposed to the arrangement.
Harman said he was satisfied the girl risked psychological damage without court intervention.
He said the girl had shown great bravery in challenging the marriage and the Islamic Lebanese culture in which she had been raised through the courts.
"Her actions in approaching the Legal Aid Commission, let alone this court, might be perceived as disrespectful of her parents and disobedient of their will."
He said forced marriages were contrary to Australian legal processes and, without genuine consent, would be void.
"It is not the right of any parent to cause their child to be married against their will, whether in accordance with the Australian law or otherwise."