With 285 days remaining in his presidency , Bush set the course of the war in a speech following two days of testimony before a skeptical Congress by Petraeus and the U.S. ambassador to Iraq , Ryan Crocker .