The draft also determines in painstaking detail what functions -- like issuing visas or establishing rules on immigration -- will go to the European Union headquarters in Brussels and what others -- like taxation , foreign policy and defense -- will remain with member states .