The latest attack’s proximity to a clearly American target (the embassy in Baghdad) was presumably what set Trump off and led him to switch to threatening Tehran directly. Nevertheless, his basic instinct still appears to be that it’s better to avoid unnecessary wars in the Middle East. For now, America’s moves appear to be primarily defensive.
In this conflict, Israel is hoping to have its cake and eat it too. Ever since Trump was elected president two and a half years ago, Netanyahu has been urging him to take a more aggressive line toward Iran, in order to force it to make additional concessions on its nuclear program and disrupt its support for militant organizations.