Mr Justice Hayden condemned the “alarming lack of urgency” among prison staff involved in the blunder