Supreme Court reverses own order, grants boys custody to mother