Questions have been raised about the close ties between a Stormont department and the Ulster Farmers’ Union (UFU).