I suppose drawing a definitive line where common sense ends and invention begins is difficult so we end up with the current system.
The US Government could dispute the patent claim if they think the so-called invention is not an invention.
Are there higher judges they can appeal to for a more rational outcome?
In relation to a patent infringement matters commenced in the US District Court of the relevant judicial circuit, it can be appealed to the Court of Appeals. In theory it can then be appealed to the Supreme Court of the United States (as happened in Google v. Oracle), if that court thinks its intervention is warranted.
In relation to issues arising from the grant of a patent (not an infringement action), an appeal can be made to the Patent Trial and Appeal Board, and then to the Court of Appeals for the federal circuit, and then to the Supreme Court of the United States, if that court thinks its intervention is warranted.
I read below this is working its way through the appeals process but I'm not sure about its status.
Look at the claims, not the general descriptions. "A better stapler" may just be a stapler, but that description elides the novel mechanism contained within. (There may be no novel mechanism here. I don't know. I'm not a cart expert.)
> For a scanner with a near and far end, position one cart near the near end. Remove a tray from the cart. Pass it through the scanner. Put the tray in a second cart at the far end of the scanner. Move the second cart to the near end of the scanner.
I'm not exaggerating. That's what claim 1 says. If you do that they can sue you for infringement.
The subordinate claims talk about stackable trays, but you only have to infringe claim 1 to be infringing. Claim 1 is written as broadly as possible in order to "catch" as many infringers as possible, and then the subordinate claims are there in case the courts actually rule that claim 1 was too broad.
So you can say "Fine, we can't patent using a cart to move trays, but what about claim 3? We patented using stackable trays! That's very novel!"
I'd just start gesturing wildly at cafeteria trays that have been around for decades.