The European Union has invited Canada to work toward becoming its first “associate member,” proposing a new form of political, economic and security cooperation as Ottawa and Brussels confront a more difficult relationship with the United States under President Donald Trump.