When Biden administration officials traveled this month to Saudi Arabia, the United Arab Emirates, Egypt, Iraq and other Middle Eastern nations, they saw a striking change: Like the United States, these countries seem to have learned the limits of military power and are instead stressing domestic economic growth and diplomacy.