The IRS began laying off thousands of employees on Thursday, threatening to disrupt the agency during peak tax season.