The SNP has launched a secret legal bid to keep biological men in women’s prisons by forcing a change to the Equality Act.