Attorney General William Barr testifies before lawmakers