A policy for housing transgender prisoners in Northern Ireland is now in place and working, the High Court heard today.