A Texas kindergarten teacher who gave melatonin gummies to special education students has resigned.