“Non-practicing entities” — the official name for companies that do nothing but sue over patents — have been dealt a couple legal setbacks in recent …