A judge has ruled that Federal Reserve governor Lisa Cook should stay in her post for the time being, likely preserving her vote at the central bank’s Sept. 16-17 meeting that will set interest rates, and delivering a setback to President Donald Trump’s effort to fire her over an allegation of mortgage fraud.