The president announced the White House chief of staff’s diagnosis Monday, saying she has a good prognosis and will continue to work while receiving treatment.