US judge blocks Trump administration from transferring transgender inmate