US judge orders Trump administration to restore legal aid to unaccompanied migrant children