French President Emmanuel Macron slammed the U.S. carmaker Ford's plans to end production at a company in France, naming the move as a hostile act.