VfB Stuttgart sealed fourth place and a spot in the UEFA Champions League, despite letting a 2-0 lead slip in Frankfurt on the final day of the season.