The congregation had written to congratulate him about something or other (unspecified by the notes), and Washington
The congregation had written a letter of congratulations.
The congregation had written a letter of sympathy.