HACKENSACK, N.J.—The Manhattan District Attorney's Office is investigating a secret $25 million legal settlement between the Port Authority and a politically connected seaport company that excused $15 million in unpaid rent at the docks in Brooklyn and Newark and handed over $10 million of public money to cover other debts. Prosecutors have sent the Port Authority…