Lawmakers failed to overhaul the NSA's handling of American calling records while preserving other domestic surveillance provisions.