RB Leipzig bounced back from the dismissal of Marcel Halstenberg to seal a first-ever DFB-Pokal win on penalties against Freiburg.