Court Upholds Ban on Anti-Farming Law