Petraeus stepping down from the CIA wouldn’t prevent him from appearing before Congress. They could still call him in based on his knowledge of events during his tenure as director.