Several major automakers have agreed to create a nationwide network of stations meant to rival Tesla by 2030.