The deal hit a snag late this week when the Port Authority of New York and New Jersey, which must approve the sale, asked for millions of dollars in cash and future infrastructure work at the Port Newark Container Terminal. But late Friday, officials said they struck a deal. AIG agreed to make more than $40 million worth of infrastructure improvements, as well as a direct payment of $10 million to the Port Authority.