As society struggles with climate change, rising homelessness and unsafe infrastructure, brands are turning to advertising as a force for good.