They probably had no other choice. During that time, it was hard to get a job with a solid pay for many people (especially immigrants). If they decided to quit, they would have to find other jobs, which probably have bad conditions as well. If they couldn’t find any good jobs, then they would basically become homeless and wouldn’t be able to pay for themselves and their families. (Back then, families were much more important.)
Black codes were called black laws
The Gulf of Tonkin is located on the eastern boarders of Vietnam.
According to John Locke, Liberty includes the right to Life, liberty, and property.