The IRS is struggling to ensure that illegal immigrants are able to illegally use Social Security numbers for legitimate purposes, the agency's head told senators on Tuesday, without allowing the numbers to be used for bad reasons.