[Begin conspiracy theory]If a judge marks it unconstitutional or not or forbids them from doing it doesn't necessarily mean that the NSA stops. That only works if you have faith in your government.
A government set to maintain its own power, after being outed by a whistleblower, would seek to save face. Have judges "ban acts of surveillance" and distribute that knowledge to the general public while secretly maintaining the actions behind the curtains. With a smaller, more loyal/contained group to prevent future whistleblowers. [/End conspiracy theory]
If it is found that the NSA continued to keep/records phone records after being "forbidden from doing so" - who would be held responsible? Would it be the head of the NSA? Head of the specific surveillance department in charge of the program? How would they be "punished"? How would the government insure it doesn't happen again? Who provides oversight of the NSA, outside of the NSA?