NYC court tosses suit connected to disgraced Brooklyn pol Vito Lopez