Britain has agreed to share its DNA database with EU police forces as part of a deal to overcome Spanish objections to the UK opting back in to 35 EU crime and policing measures, including the European arrest warrant.