> Obviously there should be limits but what should they be?
A warrant made by a neutral court; that is specifically narrow enough to only target people who could be reasonable suspects.
I'm having trouble understanding what the court did rule on, because IMO this is a totally reasonable use of data. It was very limited in scope, both in time and location.