Judge blocks transfer of transgender woman to men’s facility