IRS chief resigns after immigration data deal