The California Department of Social Services appeal letter called the move 'unlawful' and said it should be undone.