A day after he made the case for why the United States must sometimes still go to war, President Obama paid tribute on Wednesday to those who lost their lives 12 years ago in the attacks of Sept. 11, 2001, as well as the service members and civilians who died in the violent conflicts that followed.