Prominent diplomat who heads top UN court named Lebanon’s new prime minister