The International Court of Justice ruled by nine votes to six that Myanmar had "committed" genocide against the Rohingya community.