Judge sends transcripts of care hearings to government officials in bid to end ‘emergency’ over vulnerable children