The Iran war cast a shadow over the two-day Brics foreign ministers’ meeting as Iran and the UAE repeatedly sparred during sessions held behind closed doors.