Section 34 of the Oceans Act states: “The Minister may coordinate logistics support and provide related assistance for the purposes of advancing scientific knowledge of estuarine, coastal and marine ecosystems”.
I presume this is the section of the act that you're operating under, so this was a completely legal operation, obviously.