The political crisis in Honduras appears closer to resolution as negotiators agree a deal, but leaders have yet to approve it.