The electric investments come as freight demand softens and trucking orders have lagged across the board in 2025.