US President Donald Trump faced a test of his political influence on Tuesday in a special congressional election in Ohio that became a referendum on his leadership and a last chance to gauge Democratic strength ahead of November's midterm elections.