The IRS has erroneously shared the taxpayer information of thousands of people with the Department of Homeland Security, according to a new court filing