The president spoke about the "illegal investigation" as the attorney general testified on Capitol Hill.