The identity of a Nigerian baby brought to the UK remains unknown after an "extraordinary" court case.