Answer:
The government simultaneously pulled in immigrant groups like the Japanese due to a demand for labor during times of economic growth and expansion, particularly during World War II when many American men were away fighting in the war. However, at the same time, they also pushed them out based on racist policies and anti-immigrant sentiment that was prevalent in American society at the time. This was exemplified by the internment of Japanese Americans during WWII and the discriminatory immigration laws such as the Chinese Exclusion Act of 1882.