Kansas legislators will comply with Supreme Court’s ruling