United Auto Workers President Shawn Fain on Friday said General Motors agreed to put its electric vehicle battery plants under the union’s national master contract, heading off at the last minute the union’s plan to strike GM’s lucrative Arlington Assembly factory in Texas.