ICC rules Afghanistan investigation may proceed