The obvious 21st century United States instance of "don't collect data that the government might later use for persecution" is E-Verify.