The top United Nations court has taken up the largest case in its history, hearing the plight of small island nations facing rising sea levels.