The courts very likely will strike something like this down, but the people responsible know this. Court dealings can take years and during this time our privacy gets violated and some kind of profit is made.
And even when this law is declared illegal the existing data will likely be kept, only new collection is stopped (happened in Germany)
Almost as if in bourgeoisie democracy other interest groups have more influence in policy making than normal voters