Document still needs to be agreed by leaders at summit this weekend, after agreement reached at negotiator level.