GM plans $877 million modernization for Michigan plant