WA’s diesel bus fleet will be phased out over the next two decades under a Labor election commitment, which will see all vehicles go electric.