CBS Corp. has settled its Delaware Court of Chancery lawsuit against controlling stockholder National Amusements Inc., saying Monday that the company would put aside $120 million to pay former CEO Leslie Moonves, pending the outcome of an investigation into allegations that he had sexually harassed women during his time at the network.

The settlement, announced Sunday afternoon, avoids a planned trial in CBS’ dispute with Shari Redstone and her family’s National Amusements holding company, which was set to begin in three weeks.