The motivation is to terrorize and demoralize the enemy. It was posturing, a bluff, to get the Iranians to think there would be more coming, like Trump's threats had teeth.
The thing is, there has been no congressional declaration of war, so that kind of thing is illegal.
They might...