Saying you meant something to be funny doesn't mean you just get to say it. Freedom of speech protects your right to spew idiotic crap without fear of being jailed for it. It doesn't protect you from the consequences.
I love good comedy. It takes a courageous view of the world and usually has someone going out on a limb to do it. But typically these aren't funny comments. I know "funny" is subjective, but typically it's humorous, not hurtful, in nature. There are some racist things that are funny, just as there are some misogynist things that are funny. But in the end, funny typically does not entail descriptive words like "rant."
Here's my one-line for comedians: If you or someone you trust feels you have to issue an apology after you tell a joke or "rant," then it's probably best to avoid it.