Madrid's evacuation of 300 troops follows French casualties and mirrors German, Norwegian withdrawals amid Iran-linked militia threats.