A long-running legal battle over shoddy construction at the University of Connecticut law library has come to an end, as a group of contractors has settled with the state for more than $12 million.

The state received the check Tuesday as part of the mediated settlement with a wide range of defendants, each of whom contributed varying amounts, the university said.