The whiplash over the president’s schedule comes as polls show Republicans in danger of losing seats, including in areas Mr. Trump won handily in 2024.