Optimal Trade and Industrial Policies in the Global Economy: A Deep Learning Framework