The courts would have considered the full case and may have made an important principled judgments about NDAs in favour of public interest reporting.
If judgment against Telegraph, Hain could still have revealed after that.
If that failed, it might have succeeded next time as public opinion moved
Cake and eat it.
As things stand, it's cake (we know alleged perpetrator in this one case) but no eating (#metoo NDAs still a problem legally)