The United Kingdom voted 52% to 48% to leave the European Union in a historic referendum, triggering years of political turmoil and a fundamental realignment of Britain's global relationships.