Refiner Valero Energy beat fourth-quarter profit and revenue estimates on Thursday, helped by lower costs and steady output.