Israel has emerged as the Middle East’s preeminent military power just as the U.S. seeks to reduce its permanent footprint in the region.