An expected defence deal has been agreed but differences remain over trade following US president’s first visit to India.