A judge has ended a long-running dispute between Tim Burton and his ex-girlfriend over whether the acclaimed director owes her more of his earnings.