Court wrong to change abortion laws: Inspector general