China, Iran and Israel have gained in the war that has hurt energy markets, Lebanon and the U.S. standing in the Middle East.