This is certainly not what you would like to see happen. California courts ordered Twitter to hand over a users private details (email and phone number) as part of a libel suit. Whether or not Twitter did the right thing by law — they mot certainly did the wrong thing by their users.
It would have been much better PR if Twitter at all acted upset by the fact that they had to hand this over.