The US president had not officially given the strike order, but advisers expected action imminently. Then Trump came face to face with the limitations of US military power.