The secretary of Health and Human Services nominee wrote in an ethics agreement that he would keep receiving contingency fees.