Rajaratnam friend agrees to settle SEC insider trading case