To some degree perhaps, but it also cannot discriminate against citizens of certain states, as that would be a clear violation of the 14th Amendment.[1] Depending on the test you use for what counts as discrimination, you might find that disallowing certain states' IDs is illegal and/or unconstitutional; for instance, it is clearly discriminatory based on a disparate impact analysis.
[1] https://en.wikipedia.org/wiki/Equal_Protection_Clause