Disney has agreed to pay $43 million to settle a lawsuit alleging the company paid women less than men with the same job title.