Leaders of the BRICS group of emerging economies meeting for their annual summit had hoped to downplay any differences with the U.S. But even a toned down group proclamation drew the ire of President Trump.