A federal judge blocked the Pentagon’s efforts to censure Sen. Mark Kelly and lower his retirement rank in the wake of a video in which the Arizona senator and other Democrats called on service members to reject unlawful orders.