The president used his winding, nearly two-hour keynote address to try to boost Republicans around the country, telling his supporters to “pretend that I’m on the ballot” this fall.