The trans women had been housed for months or years in women’s prisons until the Trump order