This sounds like a terrifying ordeal. I hope the court outcome actually stops him from harassing her, unfortunately stalkers can be very persistent.
Also unfortunate is that we are seeing more and more violent and aggressive pushback from trans rights activists as women's rights are asserted.
As someone else noted, the most dangerous time for women is leaving an abusive relationship. The government have effectively ended the relationship, and some narcissists and disordered people react aggressively.