Court of Appeals reverses Brooklyn judge’s ruling in FDNY discrimination case