Ms. Rice spent more than nine hours testifying Tuesday , handling tough questions about the direction of the war on terror and the Bush administration 's decision to invade Iraq .