Trump’s attacks are driving what Brics was meant to do: encourage cooperation among non-Western powers and reduce dependence on the US.