At the time the Amendment was passed everyone clearly knew it was to provide citizenship for the emancipated slaves.
While the 14th Amendment itself wasn’t meant to cover anchor babies, more recent Supreme Court decisions have inched the court’s interpretation of the amendment ever closer to granting birthright citizenship to anchor babies. The 1898 Court decision “USA vs Wong Kim Ark” granted automatic citizenship to babies born in the U.S. to non-citizen parents who are here LEGALLY. While that decision didn’t directly address children born to parents here ILLEGALY, that case and a handful of others will be taken as the starting point by SCOTUS.