Campaigners say change will help to preserve the dignity of women, non-binary and trans detainees.