UnitedHealth’s stock was set to surge as medical costs rose less than feared and the profit outlook was raised.