The US president had urged people to pretend he was on the ballot paper in the races to determine control of Congress.