The commuter ferries on the Hudson River are running smoothly after the Port Authority of New York and New Jersey averted a midwinter shutdown by striking a deal for a new ferry company to take over some popular routes .