Blake Lively and Justin Baldoni have agreed to end their legal battle over the acrimonious production of their 2024 film It Ends With Us.