The city committed local funding as part of a larger federal grant application for the South Shore Line project.