This happened with the IRS and ICE. Illegal immigrants were told to pay taxes because the IRS didn't reveal their address to ICE. And it didn't. Now the new regime has fired and replaced the people at the IRS responsible for that policy, and the IRS will now report all data it collected about illegal immigrants to ICE.
And the same people crying about that trap (dox yourselves to us, or be guilty of tax evasion) are mostly the same people who think nailing Al Capone for tax evasion was a step forward for policy/government. Drives me up the f-ing wall that people won't take a step back and think about the big picture of policy.