Thomas G. Donlon, who served only weeks as police commissioner, said in a lawsuit that New York City’s mayor and top department officials had manipulated the system for personal and political gain.