California Gov. Gavin Newsom signed a measure Monday that will ban public rail agencies from selling their oldest diesel locomotives after they’ve been retired.