The Florida Legislature cannot limit attorney fees in a claims bill if it contradicts the client’s contract, the Florida Supreme Court ruled Tuesday in a 4-3 decision.

The opinion favors the West Palm Beach law firm Searcy Denney Scarola Barnhart & Shipley, which challenged the state after the Fourth District Court of Appeal ruled in 2015 that the firm and co-counsel could recover only $100,000 of a multimillion-dollar contingency fee award in a medical malpractice case.