Last Suit Accusing N.Y.P.D. of Spying on Muslims Is Settled