The attorney general has denied that he misled lawmakers during his confirmation hearings, saying the conversations occurred in his capacity as a member of the Armed Services Committee and not as a President Trump campaign surrogate.