LinkedIn may be less hypocritical than it first appears:
February 2022: LinkedIn sue Mantheos.
April 18, 2022: TechCrunch runs an article [0] stating that a U.S. appellate court affirms the legality of scraping publicly available data.
So IIUC, LinkedIn was consistently playing to the apparent law.
EDIT: oops, forgot the link!
[0] https://techcrunch.com/2022/04/18/web-scraping-legal-court/