Way to do something
Way to X usually is an exclamation of approval, encouragement, a positive reaction. However, in the example you posted it's meant ironically, so it's the exact opposite.
Some references you might be interested in:
way to go!:
(idiomatic) an expression of congratulations, encouragement, or approval
This is a very close phrase to what you got there above. Similar example would be: "Way to score, man!"
However, beware of another phrase, what a way to go!:
(set phrase) expression or remark on the unfortunate, exceptional, or unusual nature of somebody's death
This one is similar to saying for example, "what a waste!" or "what a strange idea!"