The former FBI director will testify after scrapping a legal challenge to the subpoena from Republicans on the House Oversight and Judiciary committees.