However , the country has opted out of certain elements of the European Union 's Maastricht Treaty , including the European Economic and Monetary Union ( EMU ) , European defense cooperation , and issues concerning certain justice and home affairs .