Two shipping companies have been banned from doing business in the United States after committing environmental crimes.