Ulster win but finish second