The wars in Israel and Ukraine are placing a spotlight on the candidates’ foreign policy heading into the 2024 presidential election.