The report by the Justice Department 's inspector general found " significant problems " in the government 's handling of foreigners who were jailed under blanket edicts adopted by the department after the attacks .