GM will rehire 500 Michigan workers slated for layoffs