An organic farmer has lost a landmark court case against a neighbour who grew genetically modified food.