The justices grappled with questions about domiciles and foundlings, avoided policy debates and mused about the sweep of possible rulings.