Government publishes 'data snooping' bill