the question was?
the rite thing? versus the legal thing?
yes
you did the rite thing unfortunatly our laws disagree with rite when confronted with popular or easiest/ethical

most here cringe releasing a fish that they cannot keep due to legal sidebars because said laws state you must release certain fish while you first hand get to see the mortality involved

so you kept a mortaly wounded illeaglly normally kept salmonoid?

tough call

personally i think you did the rite thing
if it was already dead?
eat it and take pride in the fact that you're living more towards how nature intended us to live regardless how the politicians inact they're diatribe
i sense flak on the horizon:)