Judge rules gyms cannot reopen Thursday