Fetching details from the dictionary...

to celebrate; to congratulate; to observe (a festival)
to present (a gift) in celebration; to drink in celebration
to wish for (a happy future, good fortune, etc.); to pray for
合格を祝ってパーティーを開く。
Hold a party to celebrate passing.
家族みんなで新年をにぎやかに祝う。
We all celebrate the New Year together.
合格を祝って友人がケーキを買ってきてくれた。
To celebrate passing, a friend bought me a cake.