The public still considers the military one of the most trusted American institutions , according to analysts and military surveys , despite mounting opposition to the war in Iraq , murky prospects for its outcome and the scandal surrounding the torture of prisoners at Abu Ghraib .