This BBC article features a side-by-side comparison of the songs. People can made their own mind whether they think it amounts to plagiarism. (Scroll down the middle of the page to the video in the article)
Ed Sheeran: Copyright case was about honesty, not money: https://www.bbc.co.uk/news/entertainment-arts-61026308
I don't think the claim of plagiarism holds at all. Also, it was Sheeran who brought the case to court to clear his name of the accusation (not the other party).
Musicians and composers have always been influenced by other music artists. This is particularly true for orchestral music (classical works or soundtracks).
Here's a 1941 film soundtrack - listen to the first minute. I'm guessing at least 95% of HN readers will guess which other film soundtrack was probably influenced by this. Inspiration, coincidence or plagiarism?