SAN FRANCISCO — Call it patent karma.

Ten years ago, Amazon.com riled the tech world when it sued Barnes & Noble with a patent on one-click buying. Critics cried that clicking once to order a book wasn’t really an invention — and certainly not worthy of a patent. And it became the poster child for a patent system gone overboard.