Blake Lively and Justin Baldoni have settled their high-profile legal dispute, ending a yearslong battle over allegations of sexual harassment.