Borussia Dortmund wins but loses title to Bayern Munich