Ultraviolet variability of the Seyfert 1 galaxy Fairall 9