Wachtell, Lipton, Rosen & Katz partner Sabastian Niles, known for defending companies against proxy fights, hostile takeovers and activist investors, will join Salesforce as its chief legal officer, the business software giant confirmed Monday.