The bloc has agreed on most of the charter , which will help to turn the group into a rules-based organization along the lines of the European Union .