Iraqi president leaves Jordan after medical treatment