The US president is enticing companies to move factories back to America while punishing those who don’t.