The United Kingdom has officially left the European Union, marking a historic end of its nearly five-decade-long membership.