Lawmakers: NSA phone records collection violated law