When I was 5 or 6 I put my hand on a coffee pot warmer because I thought it was a scale. That was a mistake.
Going on a five minute rant against gay people that made (at least) one person very uncomfortable? That's not a mistake. That's creating a hostile work environment.
This is why HR departments exist. Let them evaluate what happened and determine if any guidelines set by the company were broken.