hammer out

verb
University
1

To come to (a difficult agreement or settlement) after much arguing and conflict.