I think it would be fair to say that Michael Hutchence's death had an impact on the lyric, Bono has clearly stated this in many interviews, and on stage.
But I don't think it was the only influence. Bono has shown before that he is capable of writing songs about two or more different things, eg One. Stuck is (IMO) a song about an emotion, a feeling of helplessness, far more than it is a song about any specific person or event.
When Bono wants to write a heartfelt song about a specific subject, he does so with striking clarity, eg Two Shots of Happy; Mothers of the Disappeared; Electric Co.; Miracle Drug. But this song is not so obvious.
I think it gets fashionable to give songs specific meanings or subjects even when sometimes that isn't the case. It gives them credibility, or added emotional depth ... "Wow, that song's so touching, it's about..."
I'm not sure if Stuck can claim this. I always wished it could, but it never quite convinced me.
I wish it had of, I'd like it more.