Who gets to break the law? Based on what ethical framework? Who decides whether those actions were indeed justified?
You could grow the notion of comparmentalized information in such a society to create a kind of decentralized system of checks and balances. Eg you see footage with faces hidden and review the morals, vote etc
Could even crowd source such a thing. Surely, related AI efforts are in progress, for better or worse, e.g. FBIC (Facebook intelligence community) info gathering mechanisms
The law itself could eventually evolve to be more dynamic, decentralized