Legal challenge to Scottish 'state monitoring' of children