Pentagon leaders appeared before the Senate Armed Services Committee amid bipartisan criticism of the U.S. withdrawal from Afghanistan.