A Florida state senator who used a racial slur and vulgar language in a conversation with two African-American colleagues is resigning.