Bristol Bears are all but guaranteed a place in the European Challenge Cup knockout stage after a late win against Stade Francais in Paris.