Ashton Carter was confirmed as secretary defense Thursday, taking on the job of supervising the war against Islamic State jihadists in the final two years of Barack Obama's presidency.