The California senator who was considered to be a top contender for the Democratic nomination had faded after a strong start and announced her withdrawal on Tuesday.