The U.S. president again compared the death toll of 18 U.S. service members to the wars in Vietnam and Afghanistan, which lasted years.