In most countries, a child born in that country acquires the parent's immigration status, be it citizen, permanent resident or illegal.
It's not much of a battle. Someone will sue and this will almost instantly be overturned in federal court. The Trump administration knows this.