No, but there are laws against employing someone who publishes (internally or otherwise) memoranda that creates a hostile working environment for a protected class. More specifically, had Google not fired him, they'd be getting sued by other employees.
PS. Being told that "You are only here because you're a diversity hire, you can't actually do the work," is creating a hostile working environment.