A joint venture between General Motors and South Korean battery company LG Energy Solution is set to receive a $2.5 billion loan from the Energy Department to build battery cell factories for electric vehicles in three states.