What was the legal/civil force of indentured servitude in the US? Specifically, Irish in mid 19th C.

See query, based on recent reading of the astounding abject situation of the first wave of immigrants after the Famine.