Leinster dent Ulster's hopes