The defense secretary is upending decades-old norms, current and former leaders say, with some cautioning that his proselytizing violates the Constitution and undermines troop cohesion.