Anthem posted a $1.5 billion profit in the third quarter thanks to a boost in Medicaid growth, prompting the insurer to raise its financial outlook for the year.