Carter never shied away from what seemed the most intractable problems of the Middle East