UK and EU leaders agreed a package of measures on security, youth mobility, and trade at their second joint summit in Brussels on Friday.