Other comments say that these tractors are always purchased with a loan, in which case the loan provider (and insurance companies) can make stipulations about the usage and maintenance of the tractors. And perhaps John Deere can help enforce those. But for them to just put a unilateral blanket ban on modifying their equipment is wrong. If they have a monopoly it is an abuse of power and should be punished; if they don't then the market will fix the issue itself, for example via farmers complaining and then not buying from them any more.
Contracts that limit your ability to do things are very common.
If you buy a pure bred dog, you will typically be required to sign a contract that requires you to not breed it and to get it neutered after a certain period of time. If for some reason you need to give it up, you will have to return it to the breeder.
If you buy a movie on DVD, you can enjoy it in your home, but you can't set up an impromptu theater by projecting the movie on the side of a building.
The import thing, was the customer provided notice of this restriction at or before the time of sale. It sounds like the answer to this question is: yes.
You may be tempted to to claim some sort of power imbalance, which I don't buy in the general case, but in this particular case it is even less relevant. Large farms that use automated machinery costing many hundreds of thousands of dollars is the very definition of sophisticated customer, capable of hiring legal help and evaluating options.
That said, despite all the crying about people not being able to work on cars any more, I just don't see it. I change my own oil on my 2015 Mazda, and I can easily change other parts on it too. Maybe there's certain brands that intentionally throw up roadblocks? But I don't see it with mainstream Japanese brands; these cars are very easy to work on.
Contracts are laws, the people who write them create laws to favor themselves, and the people who don't have leverage to negotiate the contracts are subject to those laws without any meaningful representation.