A group of vineyards has lost a legal bid to hold the West Australian environmental agency to account for tainting their grapes during prescribed burning.