He is pursuing a libel suit against BuzzFeed, and the website is attempting a legal maneuver that might allow Daniels's records of any relationship with Trump to be made public.
I don't think the parties pursuing libel suits are typically government entities or officials acting in their official capacities, possibly for exactly the reason you give: it would be unconstitutional.