A Capitol Hill showdown has forced the National Security Agency to stop collecting Americans' phone records in bulk.