Israel’s defense exports reached a record last year as wars including those in Ukraine and Gaza raise the specter of a global arms race.