A federal judge blocked the United States government from enforcing a ban that barred the Pentagon from working with firms that lobby for Alibaba. The ruling does not remove Alibaba from the Defense Department's military blacklist.