See the underline continues after the word "trademarks", before the line-break?
It's an issue, but there's nothing automated you can do.
I've filed several bug reports for InDesign and Illustrator about using spaces for centering, underlines, etc. and in years Adobe hasn't corrected the issue.
The only thing you can do is delete the trailing space on that line or manually remove the underline from the space. There's no automated solution.