Companies that think long-term are benefiting shareholders and society.