Israel's strikes on Iran test close ties with Trump as both leaders face elections and competing priorities.