Court affirms limits of hate speech laws