US dad wins Brazil court ruling on son’s custody