President Trump was campaigning for Republicans in Ohio and Michigan.