The 2-1 extra-time home win over Freiburg set up Stuttgart for a German Cup final meeting with Bayern Munich.