Brooklyn judge grants lenient sentence for former Queens assemblyman