EDIT: your link kind of proves my point:
"On 21 December 2016, the European Court of Justice (ECJ) declared that the generalised retention of certain types of personal data is unlawful, although little is known as to how this will affect the Investigatory Powers Act at this stage."
also my perception is that may and cameron were doing reverse psychology by backing remain