Spain will clinch the group if they avoid defeat against Italy, who are two points behind Spain in second place after being denied qualification late by third-placed Portugal.