CVS Health steered through rising costs in its insurance division to handily beat profit expectations on Wall Street.