In the last General Assembly address of his presidency, Mr. Obama said the gains made in recent decades were threatened by “unease and strife.”