After a surprising earnings miss last time around, Costco delivered on Thursday night.