The president is closely monitoring talks between automakers and workers as the 2024 election approaches.