Montreal is responsible for allowing racial profiling to happen, a Superior Court judge has ruled in a class-action suit.