Phone Company Bid to Keep Data From N.S.A. Is Rejected