Whale was freed but marine charity says proposed new laws would have made it illegal to highlight the distress of the animal