Attack on Building is Hate Crime, N.Y. Court Rules