BP Plc agreed to invest $20 million in a developer of ultra-fast charging for batteries, a technology the oil major believes is key for accelerating the adoption of electric vehicles.