President Donald Trump says the US will respond to Iranian strikes on its personnel in Jordan.