The United Nations’ highest court threw out Georgia’s complaint accusing Russia and separatist militias of years of ethnic cleansing in two breakaway Georgian provinces.