Justin Baldoni's $400 million countersuit against his "It Ends with Us" costar Blake Lively, her husband, Ryan Reynolds, and The New York Times has been dismissed by a judge.

Mr. Baldoni had accused Ms. Lively and her husband, Ryan Reynolds, of trying to destroy his reputation. The Times had brought the feud into the public eye.

They had been locked in a legal battle since Lively sued Baldoni over their film, It Ends with Us.