A federal judge put a temporary restraining order on a Mississippi law that would have shut down the state’s only abortion clinic, hours after the law took effect.