"Should" in the past?

You're right, that should have usually carries the implication that it didn't happen.

It had to be done.

is what I would say.