Ford Motor Co.’s decision to take a nearly $20 billion charge as it shifts to hybrids from electric vehicles had little impact on the automaker’s stock but did send shares of battery makers lower.