And they used extensive quotes from partisan hacks who they did all they could to leave the impression that it was a violation. No "might" about it. Their obvious intention was to make the listener conclude that it was illegal even though it was not. And CNN knew it.
https://www.cnn.com/2018/12/27/politics/trump-political-war-zone-visit-iraq/index.html