Ecuador 's constituent assembly has approved a new draft constitution that will be put to a referendum in September .