take the wind out of someone’s sails

Meaning 1
A sailboat needs wind in its sails to move
Sentence 1
That boat tacked in front of us and took the wind out of our sails.
Meaning 2
to stop or slow someone down
Sentence 2
He didn't get a good evaluation. It really took the wind out of his sails.