I think he did the right thing. Some people think of Joel as a bad guy for supposedly dooming mankind but at the same time, I'm not sure Joel is supposed to be totally good. He can be pretty brutal at times but he's a product of the equally horrible or worse world around him.
Joel's a more interesting character that way.