For Israeli Prime Minister Benjamin Netanyahu, the war has pivoted attention away from Gaza, but it has trapped U.S. President Donald Trump in a conflict with no clear exit.