The program is the latest in a series of moves Lyft has taken to fulfill its pledge to transition entirely to electric vehicles by 2030.