Ford Motor Co. told employees it would modify its diversity, equity and inclusion initiatives and end participation in a notable ranking by an LGBTQ advocacy group, joining a series of companies including Lowe’s Cos. and Harley-Davidson Inc. in curtailing some of the programs.