Ulster snatch win in Swansea