Judge bars migrant family separations, orders return of children within 30 days