Three-time champions Spain qualified for Euro 2020 courtesy of Rodrigo's injury-time strike in a draw in Sweden.