McTominay led Scotland to their first win against Spain since 1984 and continued their perfect start to the Euro 2024 qualification campaign.