The preliminary injunction allows Alibaba Group Holding Ltd. to retain U.S. lobbyists who also represent defense contractors while its underlying lawsuit against the Department of Defense proceeds.