The sweeping and extraordinary intervention is expected to shock the Pentagon and upend the tradition of the joint chiefs chair serving a new administration.