Tata Consultancy Services Ltd. said it will pay $505 million for the India-based back-office arm of Citigroup Inc., a sign of how Indian companies are seeking to snap up such assets as foreign banks raise funds amid the current financial tumult.