Florida has worked out a deal to cap the amount of money that will be paid to law firms hired to help the state in its long-running water war with Georgia.

Some Republican legislators last year complained about the escalating costs—which began to rise sharply after the state took its case to the U.S. Supreme Court—and initially refused to sign off on any additional payments.