The president’s campaign against the industry threatened future projects, even before three US judges blocked enforcement of a government construction ban.