The comments were an apparent jab at the US leader's sometimes contradictory stance on the US and Israeli war against Iran.