Judge to weigh new rules as US works to reunite migrant families