Judge rejects Trump administration's bid to detain migrant children indefinitely