Judge to rule on custody of kids driven into ocean by South Carolina mom