One purpose of the Chinese Exclusion Act (1882) was to

A: speed construction of the western railroads
B: encourage settlement of the Pacific Coast
C: expand the civil rights of immigrants
D: protect the jobs of American workers