Its not unconstitutional so much as the data mining is simply illegal. The phone companies which participated in it are being sued, and so is the government. I mean sure, we could go after the conspiracy against rights, but 5,000 dollars per record, and a year in jail, seems a far greater deterrent. In fact here is a link to the law US CODE--TITLE 18--CRIMES AND CRIMINAL PROCEDURE