UN deputy chief calls for ‘courage, vision and solidarity’ to boost middle-income nations