A 19-year-old woman who died after a legal battle with an NHS trust over her treatment for a rare mitochondrial disorder can be named, a judge has ruled.