In Leak Investigation, Tech Giants Are Caught Between Courts and Customers