The high-stakes legal feud that has overshadowed one of 2024’s biggest box-office successes has finally reached a conclusion.