Precisely what the Investigatory Powers act in the UK has done. It's all very sordid: "We've been doing something illegal in secret? Well, let's just make it legal and pretend it's new." Ugly stuff, and risky for our collective future, but it's where we in the west are now as a society, and we weill have to make the best of it.