More than 20,000 unaccompanied children are at imminent risk of losing access to legal representation in their immigration proceedings.