Charity threatens legal action against government 'to protect vulnerable children'