Allies announce agreement as Tehran's FM visits Damascus, which has received crucial support from Islamic Republic amid years-long civil war