Supreme Court Chief Justice Jeffrey Miles and Justice Malcolm Gray declared legislation invalid.