The summit in Rio made progress on addressing economic inequality, but Trump’s shadow loomed over the proceedings.