The Internal Revenue Service said identity thieves used its online services to obtain prior-year tax return information for about 100,000 U.S. households, a major setback for the agency that is charged with safeguarding taxpayers’ privacy.