The Iranian leader 's two-day visit to Damascus comes as both countries face possible showdowns with the United Nations Security Council .