Australia and Europe have struck a historic pact covering trade, defence and innovation after almost a decade of at-times intractable negotiations.