The first White House press secretary to give birth while in the job will take an unspecified amount of maternity leave.