If it was a "poorly drafted statute", why would the SCOTUS have to get involved? Why would it be a federal issue?
Because, under the 14th Amendment, SCOTUS has the responsibility to intervene when the right to Equal Protection under the law is infringed upon by a State action, as here.