Bordeaux-Begles will host Munster in the quarter-finals of the Investec Champions Cup after a 43-31 victory over Ulster at the last-16 stage.