Judge hearing family contact dispute criticises Welsh council of adopting “too narrow a perspective” and “missing the point” over support it could offer