Sam thought that his efforts were necessary, but in reality the accomplished nothing.  They were what?
superfluous unneeded useless
useless
his efforts were useless because they accomplished nothing
accomplished nothing