And I can't offer a legal or constitutional way to do what I suggested
There's a way that's both legal and Constitutional. Simply withdraw from the WTO and NAFTA (with Congressional approval), and erect steep tariffs. Jobs get off-shored because labor is cheaper in the third world. But if the savings from cheaper labor abroad are more than offset by the higher costs of tariffs, to get access to the US consumer market, people will keep those jobs here if they want to sell to the American consumer. I oppose that for a number of reasons (the reciprocal trade barriers would kill exports, prices would rise faster than wages, and you'd still lose half those jobs to automation, anyway), but it would be perfectly legal.
There's a modified solution that would get around the problems. The US would need to get together with Canada, Australia, Japan, and the EU, to create a single trade block, with coordinated trade policy and no tariffs among us. Then we would collectively raise trade barriers against everyone outside that block, with multiple tariff levels, linked to desired behaviors among those countries (observing environmental and IP laws, protecting labor and human rights, and moving towards pluralism and democracy). The idea would be to capture the benefits of trade with the third world, without letting the third world play us wealthy nations off against each other (if you want access to ANY of our consumer markets, you have to play ball). And the big picture would be to ratchet up our requirements for low-tariff trade, gradually over time, so that the third world was brought up to our standards, rather than us racing to the bottom to compete with them. The move would be timed so that where real efficiencies could be found through off-shoring, that would be allowed, but where the cost savings are minor, there'd be enough tariffs to keep people from pulling the trigger, so workers aren't displaced for trivial profit enhancements. And, meanwhile, the tariffs collected could be used to fund job retraining and severance benefits, so those workers who did get displaced could be eased into new work in some other field.