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