Ford Motor Company’s philanthropic arm is contributing $5 million to various nonprofits to address transportation gaps, the foundation announced Tuesday.