Unilateral intervention against genocide is possible and arguably legal even without an ICJ ruling, but ordinarily the preferred method would be sanction from the UN via a Security Council resolution, or by a General Assembly resolution from an emergency special session called to address a Security Council deadlock.