Check the various legal authorities which allow NSA to collect data