UK spy agencies broke surveillance laws to spy on millions of people