Democratic-lead states and civil rights groups have filed a slew of lawsuits in response to Donald Trump's bid to roll back a principle that has been recognised in the US for more than 150 years.