The European Union’s top officials have formally signed the post-Brexit trade deal with the United Kingdom.