Leaders reach agreement on coalition