Poor ship maintenance and lax regulations could endanger U.S. ports. After the Baltimore bridge collapse, ships registered in some foreign countries are drawing new scrutiny.