When floods, heat waves and other climate disasters cost companies money, the results can shape their willingness to invest there in the future.