UAW president says GM has agreed to put battery plant workers under union contract