The NBA and Warner Bros. Discovery have agreed to end all legal disputes, allowing the league to move forward with new media partners Comcast, Disney and Amazon.