The UN’s top court ruled by nine votes to six that Myanmar’s 2017 military campaign against the Rohingya amounted to genocide.