Melanie Krause, the acting commissioner of the IRS, is resigning over a new deal that will share the tax data of immigrants with U.S. immigration agents.