Gen. David Petraeus cleared a Senate panel in his quest to be the new commander of U.S. forces in Afghanistan.