President Donald Trump was sued over his bid to end automatic citizenship for children born in the US whose parents are unlawfully or temporarily in the country,