Ratcliffe told lawmakers the nation's spy agencies must do better when it comes to using technology like artificial intelligence to confront adversaries.