EU president says 'mistakes were made' over Northern Ireland row