The announcement comes after Madrid refused to let Washington use jointly operated military bases for the war on Iran.