The US president, who had said he would avoid needless foreign wars, has embraced military power with few limits.