The Manhattan district attorney has considerable leeway in deciding whether to bring charges against the former president using what could be an untested legal theory.