In this time of war overseas, more Americans think foreign policy should be a top U.S. priority for 2024