Whoever told you Martinique is considered or treated as visiting U.S. Territory was absolutely incorrect. U. S. Virgin Islands? Yes. Martinique is an insular province of France.
You may well have to secure another ESTA for your transit and overnight in the USA. But Flyertalk is probably not the definitive place to get proper visa information.