Legal challenge endangers Trump’s industrial plans