Raw materials for industrial revolution, trade, cheap labor, new materials.
It began getting seriously enforced by Joseph I. Breen who became the head of the committee for the code. It was a way to censor movies in Hollywood in order to ensure that they weren't spreading immoral ideas. It began even earlier but the thirties were a time when the code actually became a rule and it had to be obeyed.
Unions were successful in solving the workers' problems only when the workers had high skills, and there were few workers with those skills. Nevertheless, unions helped other workers by bringing attention to their low wages and poor working conditions.
I hope this answers your question! So sorry if it's incorrect!