Yes, 1924, not 1917. However, the law did not prove what you say. Per the 14th Amendment, Congress was not required to grant citizenship to Indians, but could choose whether or not to do so, and did so in 1924.
"Every Person born within the limits of the United States, and subject to their jurisdiction, is by virtue of natural law and national law a citizen of the United States. This will not, of course, include persons born in the United States who are foreigners, aliens, who belong to the families of ambassadors or foreign ministers accredited to the Government of the United States, but will include every other class of persons."
Since illegal aliens are foreigners their offspring should not be granted automatic citizenship either unless Congress, like in 1924 grants it to them.