Borussia Dortmund gain a home victory over Real Betis to end the Spanish side's winning run in the Champions League.