Robert M. Morgenthau, a courtly Knickerbocker patrician who waged war on crime for more than four decades as the chief federal prosecutor for Southern New York State and as Manhattan’s longest-serving district attorney, died on Sunday in Manhattan. He was 99.