I am assuming these floating apartment buildings have their own robbery/homicide and swat teams available.
Technically they were on port authority property awaiting Customs Inspection.
But ships do have their own security and the US has to get permission to board from whatever nation the ship is flagged under, which they always do anyways........