A federal judge issued a temporary restraining order hours after the lawsuit was filed and has scheduled a hearing for Feb. 21.