The president, president-elect and longstanding lawmakers were among those to offer condolences after hearing of Carter’s death.