The act of congratulating another person in a dream is often a sign that they need support and patience. Here, they are publicly acknowledging thoughts they are not completely ready to admit in their waking life. Seek them out when you awake and ask how they are doing.
Also, dreaming about congratulating someone means sharing experiences with someone to create stronger bonds because you both experienced the same type of event and happiness together by simply wishing them well.