American hostility under Trump could strengthen a group that has little unity, with his threats rallying members together, and thus play into China’s hands. In some ways, Brics represents a contest for leadership of the developing world.